Configure running services

In particular, disable unattended-upgrades as it may interfere with ansible-pull
This commit is contained in:
Salt 2020-07-04 19:50:55 -05:00
parent 744b72858f
commit 5972c8f7e7
2 changed files with 13 additions and 0 deletions

View File

@ -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

View 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