make ansible-lint common.yaml happy

This commit is contained in:
Michael Rennecke 2020-11-13 21:45:55 +01:00
parent 7beb58a0a2
commit d29de3a57f
8 changed files with 27 additions and 25 deletions

View File

@ -4,6 +4,7 @@
file:
path: "{{ bitwarden_data }}"
state: directory
mode: 0755
recurse: yes

View File

@ -1,10 +1,12 @@
---
- name: reload ssh
service: name=ssh state=reloaded
service:
name: ssh
state: reloaded
- name: update trusted ca debian
shell: /usr/sbin/update-ca-certificates
command: /usr/sbin/update-ca-certificates
when: ansible_os_family == "Debian"
# handlers for etckeeper

View File

@ -1,6 +1,6 @@
---
- import_tasks: packages.yaml
# Install unattended Upgrades
- import_tasks: updates.yaml
- import_tasks: packages.yaml

View File

@ -7,4 +7,6 @@
- htop
- telnet
- aptitude
state: latest
- apt-listchanges
- unattended-upgrades
state: present

View File

@ -1,19 +1,10 @@
---
- name: Install unattended Upgrades
apt:
name:
- unattended-upgrades
- apt-listchanges
state: latest
notify: Record changes in etckeeper
- name: update Package lists
cron:
name: update Package lists
hour: "{{3|random(seed=inventory_hostname+'updates')}}"
minute: "{{59|random(seed=inventory_hostname+'updates')}}"
hour: "{{ 3|random(seed=inventory_hostname+'updates') }}"
minute: "{{ 59|random(seed=inventory_hostname+'updates') }}"
job: /usr/bin/apt-get update > /dev/null
@ -21,6 +12,7 @@
template:
src: "{{ item }}"
dest: "/etc/apt/apt.conf.d/{{ item }}"
mode: 0644
with_items:
- 20auto-upgrades
notify: Record changes in etckeeper
@ -30,6 +22,7 @@
template:
src: "{{ item }}"
dest: "/etc/apt/apt.conf.d/{{ item }}"
mode: 0644
with_items:
- 50unattended-upgrades
notify: Record changes in etckeeper

View File

@ -1,17 +1,18 @@
---
- name: restart haproxy
service:
systemd:
name: haproxy
state: restarted
- name: reload haproxy
service:
systemd:
name: haproxy
state: reloaded
- name: reload systemd config
shell: systemctl daemon-reload
systemd:
state: daemon-reload
- name: update certs
shell: /usr/local/bin/update_haproxy_certs.sh
command: /usr/local/bin/update_haproxy_certs.sh

View File

@ -5,7 +5,7 @@
name:
- liblua5.3-0
- libpcre3
state: latest
state: present
- name: conflicted with haproxy package
apt:
@ -24,6 +24,7 @@
file:
path: "{{ item }}"
state: directory
mode: 0755
with_items:
- /etc/haproxy/
- /etc/haproxy/certs/
@ -33,6 +34,7 @@
copy:
src: errorfiles
dest: /etc/haproxy/
mode: 0644
- name: copy haproxy binary
copy:
@ -91,13 +93,13 @@
cron:
name: renew certificates
weekday: SUN
minute: "{{59|random(seed=inventory_hostname+'renew certificates')}}"
hour: "{{23|random(seed=inventory_hostname+'renew certificates')}}"
minute: "{{ 59|random(seed=inventory_hostname+'renew certificates') }}"
hour: "{{ 23|random(seed=inventory_hostname+'renew certificates') }}"
job: /usr/local/bin/update_haproxy_certs.sh
- name: renew ocsp information
cron:
name: renew ocsp
minute: "{{59|random(seed=inventory_hostname+'renew ocsp')}}"
hour: "{{23|random(seed=inventory_hostname+'renew ocsp')}}"
minute: "{{ 59|random(seed=inventory_hostname+'renew ocsp') }}"
hour: "{{ 23|random(seed=inventory_hostname+'renew ocsp') }}"
job: /usr/local/bin/ocsp_update.sh

View File

@ -4,6 +4,7 @@
file:
path: "{{ nextcloud_data }}"
state: directory
mode: 0755
recurse: yes