Add playbooks to role os-linux-prep-default
This commit is contained in:
@ -33,4 +33,4 @@
|
||||
- name: Run "apt-get clean"
|
||||
ansible.builtin.apt:
|
||||
clean: yes
|
||||
when: ansible_facts['distribution'] == "Debian"
|
||||
when: ansible_os_family == "Debian"
|
||||
|
9
ansible/playbooks/os-linux-prep-default.yml
Normal file
9
ansible/playbooks/os-linux-prep-default.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- hosts: "{{ hosts_target }}"
|
||||
become: true
|
||||
gather_facts: true
|
||||
vars_files:
|
||||
- ~/.secret/.ansible/vars_creds.yml
|
||||
roles:
|
||||
- os-linux-prep-default
|
@ -10,6 +10,6 @@
|
||||
- name: Debug
|
||||
debug:
|
||||
# var: ansible_facts
|
||||
msg: " It is {{ansible_facts['distribution'] }} {{ ansible_facts.distribution_major_version }} ( {{ ansible_facts.distribution_release }} )"
|
||||
msg: " It is {{ ansible_os_family }} {{ ansible_facts.distribution_major_version }} ( {{ ansible_facts.distribution_release }} )"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user