Ansible roles that I wrote for my own use.
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.
 
 

43 lines
1017 B

---
- block:
- name: install dehydrated
apt:
name:
- dehydrated
- curl
state: present
update_cache: true
cache_valid_time: 3600
- name: install base.sh configuration file
template:
src: etc/dehydrated/conf.d/base.sh.j2
dest: /etc/dehydrated/conf.d/base.sh
- name: install /etc/dehydrated/domains.txt configuration file
template:
src: etc/dehydrated/domains.txt.j2
dest: /etc/dehydrated/domains.txt
- name: install /var/lib/dehydrated/hook.sh
copy:
src: var/lib/dehydrated/hook.sh
dest: /var/lib/dehydrated/hook.sh
mode: 0750
owner: root
group: root
- name: install /etc/cron.daily/dehydrated
copy:
src: etc/cron.daily/dehydrated
dest: /etc/cron.daily/dehydrated
mode: 0755
owner: root
group: root
# TODO: add registration
# /usr/bin/dehydrated --register --accept-terms
become: "{{ dehydrated_become }}"
become_user: "{{ dehydrated_become_user }}"