more testing aaaaaa
This commit is contained in:
@ -9,3 +9,18 @@
|
||||
- name: Print the package facts
|
||||
ansible.builtin.debug:
|
||||
var: ansible_facts.packages
|
||||
|
||||
- name: Check if a folder exists
|
||||
stat:
|
||||
path: /etc/apt
|
||||
register: aptfolder
|
||||
|
||||
- name: Show if the folder exists
|
||||
debug:
|
||||
msg: "APT is on this system"
|
||||
when: aptfolder.stat.exists
|
||||
|
||||
- name: Show if the folder does not exist
|
||||
debug:
|
||||
msg: "APT is on this system"
|
||||
when: aptfolder.stat.exists == False
|
Reference in New Issue
Block a user