Add playbooks to role os-linux-prep-default

This commit is contained in:
2024-09-21 22:58:54 +03:00
parent 8b85b73396
commit 36aa9106ea
34 changed files with 499 additions and 14 deletions

View File

@ -33,4 +33,4 @@
- name: Run "apt-get clean"
ansible.builtin.apt:
clean: yes
when: ansible_facts['distribution'] == "Debian"
when: ansible_os_family == "Debian"

View 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

View File

@ -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 }} )"