You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
599 B
26 lines
599 B
2 years ago
|
- 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
|