Configure running services
In particular, disable unattended-upgrades as it may interfere with ansible-pull
This commit is contained in:
parent
744b72858f
commit
5972c8f7e7
@ -43,4 +43,6 @@
|
|||||||
- "97-overlayroot"
|
- "97-overlayroot"
|
||||||
- name: Configure Ansible user
|
- name: Configure Ansible user
|
||||||
include_tasks: ansibleuser.yml
|
include_tasks: ansibleuser.yml
|
||||||
|
- name: Configure services
|
||||||
|
include_tasks: services.yml
|
||||||
become: yes
|
become: yes
|
||||||
|
11
roles/common/tasks/services.yml
Normal file
11
roles/common/tasks/services.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- name: Configure services
|
||||||
|
systemd:
|
||||||
|
name: "{{ item.name }}"
|
||||||
|
state: "{{ item.state }}"
|
||||||
|
enabled: "{{ item.enabled }}"
|
||||||
|
loop:
|
||||||
|
- { name: "unattended-upgrades", state: "stopped", enabled: no }
|
||||||
|
become: yes
|
Loading…
Reference in New Issue
Block a user