acmesh-install-deploy/tasks/main.yaml

26 lines
548 B
YAML
Raw Normal View History

---
- name: Install git
become: true
ansible.builtin.apt:
name:
- git
state: present
update_cache: yes
- name: Create acme user
become: true
ansible.builtin.user:
2024-09-13 14:53:21 +02:00
name: "{{ acme_sh_user }}"
2024-09-13 14:53:21 +02:00
- name: Add acme user to groups
become: true
ansible.builtin.user:
2024-09-13 14:53:21 +02:00
name: "{{ acme_sh_user }}"
groups: "{{ acme_sh_user_groups }}"
append: true
2024-09-13 14:53:21 +02:00
when: acme_sh_user_groups|length > 0
- name: Install acme.sh
become: true
2024-09-13 14:53:21 +02:00
become_user: "{{ acme_sh_user }}"
ansible.builtin.import_tasks: "install_acmesh.yml"