Compare commits
No commits in common. "ed5222e6bf08405f5f97e6713d5877bbb7bdd5f2" and "433008d211e4b45abbbfd4a597b92d8e98514e6c" have entirely different histories.
ed5222e6bf
...
433008d211
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
- name: Host information
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Print OS distribution and version
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['distribution_release'] }})"
|
||||
|
||||
- name: Find all .dpkg-* files
|
||||
ansible.builtin.find:
|
||||
paths: /etc
|
||||
file_type: file
|
||||
recurse: true
|
||||
use_regex: false
|
||||
patterns:
|
||||
- "*.dpkg-*"
|
||||
become: true
|
||||
register: check__dpkg_files
|
||||
|
||||
- name: Create variable for list of all .dpkg-* files
|
||||
ansible.builtin.set_fact:
|
||||
check__dpkg_files_list: [ ]
|
||||
|
||||
- name: Populate list of all .dpkg-* files
|
||||
ansible.builtin.set_fact:
|
||||
check__dpkg_files_list: "{{ check__dpkg_files_list + [ item.path ] }}"
|
||||
loop: "{{ check__dpkg_files.files }}"
|
||||
|
||||
- name: Print .dpkg-* files list
|
||||
ansible.builtin.debug:
|
||||
var: check__dpkg_files_list
|
Loading…
Add table
Add a link
Reference in a new issue