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 }}"
|
- hosts: "{{ target_hosts }}"
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install Apache2
|
- name: Gather Linux Distribution Facts
|
||||||
ansible.builtin.package:
|
ansible.builtin.setup:
|
||||||
name: apache2
|
filter: ansible_distribution*
|
||||||
state: present
|
|
||||||
|
- 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