machina-installer/playbooks/cjdns.yml

26 lines
599 B
YAML

- hosts: "{{ hostlist }}"
tasks:
- name: Install cjdns and its tools
become: true
dnf:
name:
- cjdns
- cjdns-tools
state: latest
- name: Create the configuration file
become: true
template:
src: cjdroute.conf.j2
dest: /etc/cjdroute.conf
owner: root
group: root
mode: '0600'
validate: 'cjdroute --cleanconf < %s'
backup: true
- name: Enable and start the service
become: true
systemd:
name: cjdns.service
enabled: true
state: started