Refactor builtin.systemd to builtin.systemd_service
Add condition for setting hostname
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Restart systemd-journald
|
- name: Restart systemd-journald
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd_service:
|
||||||
name: systemd-journald
|
name: systemd-journald
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
|||||||
@@ -19,3 +19,4 @@
|
|||||||
state: present
|
state: present
|
||||||
vars:
|
vars:
|
||||||
ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir
|
ansible_remote_tmp: /tmp # Prevent warnings for auto-created tmp dir
|
||||||
|
when: "'activedirectory' not in group_names"
|
||||||
|
|||||||
Reference in New Issue
Block a user