Initial commit
This commit is contained in:
commit
e02ccc7d74
8 files changed
+427
No files matched your search
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# tasks file for haproxy
|
||||
|
||||
- name: Install acme.sh
|
||||
ansible.builtin.apt:
|
||||
name: acme.sh
|
||||
become: true
|
||||
notify: Install cronjob
|
||||
|
||||
- name: Ensure to install cronjob
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- acme.sh
|
||||
- --install-cronjob
|
||||
become: true
|
||||
|
||||
- name: Execute acme.sh commands
|
||||
ansible.builtin.command:
|
||||
argv: "{{ item.command }}"
|
||||
creates: "{{ item.must_present | default(omit) }}"
|
||||
removes: "{{ item.must_absent | default(omit) }}"
|
||||
become: true
|
||||
loop: "{{ haproxy_acmesh }}"
|
||||
loop_control:
|
||||
label: "{{ item.command | join(' ') }}"
|
||||
environment: "{{ item.env }}"
|
||||
Reference in new issue
Block a user