system-config/playbooks/service-afs.yaml
Ian Wienand c98505c8f2 Manage afsdb servers with Ansible
Move common setup steps into a openafs-server-config role, and create
openafs-file-server and openafs-db-server roles to manage fileserver
and db servers respectively.

Modify the playbook to run these roles against the AFS servers.

Change-Id: I4e80ad8ffe1d4992e405ea516b8762109758d7eb
2021-01-21 07:08:37 +11:00

27 lines
673 B
YAML

- hosts: "afsdb:!disabled"
name: "AFS: configure db servers"
strategy: free
roles:
- openafs-db-server
- hosts: "afs:!disabled"
name: "Configure AFS server"
roles:
- openafs-file-server
- hosts: "mirror-update:!disabled"
name: "Create key for remote vos release"
tasks:
# Note done as root because all the update scripts run as root
- name: Create vos release keypair
openssh_keypair:
path: /root/.ssh/id_vos_release
type: ed25519
register: vos_release_keypair
# Note: relies on vos_release_keypair installed to mirror above
- hosts: "afs:!disabled"
name: "Allow remote vos_release"
roles:
- vos-release