Initial version
This commit is contained in:
25
playbooks/cjdns.yml
Normal file
25
playbooks/cjdns.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
- 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
|
Reference in New Issue
Block a user