different settings
This commit is contained in:
parent
7ff7b09f95
commit
e1d4e180d9
1 changed files with 11 additions and 4 deletions
15
test.yaml
15
test.yaml
|
|
@ -2,7 +2,14 @@
|
|||
- hosts: "{{ target_hosts }}"
|
||||
become: true
|
||||
tasks:
|
||||
- name: Install Apache2
|
||||
ansible.builtin.package:
|
||||
name: apache2
|
||||
state: present
|
||||
- name: Gather Linux Distribution Facts
|
||||
ansible.builtin.setup:
|
||||
filter: ansible_distribution*
|
||||
|
||||
- name: Display Linux Distribution Information
|
||||
ansible.builtin.debug:
|
||||
msg: "Linux Distribution: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release | default('') }}"
|
||||
|
||||
- name: Display Linux Kernel Version
|
||||
ansible.builtin.debug:
|
||||
msg: "Linux Kernel: {{ ansible_kernel }}"
|
||||
Loading…
Reference in a new issue