Configure system timezone with Ansible collection
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Check whether community.general is installed
|
||||
ansible.builtin.command:
|
||||
cmd: ansible-galaxy collection list community.general
|
||||
register: collection_list
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
- name: Install community.general collection
|
||||
ansible.builtin.command:
|
||||
cmd: ansible-galaxy collection install community.general
|
||||
when: collection_list.rc != 0 or
|
||||
'community.general' not in collection_list.stdout
|
||||
Reference in New Issue
Block a user