e1628a667a
It is always something ... paramiko 2.0.0 in Bionic does not have support for ed25519 keys which we have setup for the vos_release user. Rather than reworking the entire chain deploying that key, switch to calling ssh directly. Change-Id: Iacb0812f475c178189d2233b3a2324337f3bb419
41 lines
855 B
YAML
41 lines
855 B
YAML
- name: Ensure release script directory
|
|
file:
|
|
path: '/opt/afs-release'
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
|
|
- name: Ensure log directory
|
|
file:
|
|
path: '/var/log/afs-release/'
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
|
|
- name: Copy script
|
|
copy:
|
|
src: release-volumes.py
|
|
dest: '/opt/afs-release'
|
|
mode: '0755'
|
|
|
|
- name: Install script dependency packages
|
|
package:
|
|
name:
|
|
- python3-statsd
|
|
state: present
|
|
|
|
- name: Install release cron job
|
|
cron:
|
|
name: 'Release afs volumes'
|
|
state: present
|
|
job: '/opt/afs-release/release-volumes.py -d >> /var/log/afs-release/afs-release.log 2>&1'
|
|
hour: '*'
|
|
minute: '*/5'
|
|
|
|
- name: Install logrotate rules
|
|
include_role:
|
|
name: logrotate
|
|
vars:
|
|
logrotate_file_name: '/var/log/afs-release/afs-release.log' |