Files
d3m0k1d.ru/frontend/playbook.yml
2025-10-17 10:35:11 +03:00

32 lines
742 B
YAML

- name: Configure a frontend server
hosts: server
become: yes
tasks:
- name: install git
apt:
name: git
state: latest
when: ansible_os_family == "Debian"
- name: clone repo with script
ansible.builtin.git:
clone: https://github.com/d3m0k1d/automation-scripts.git
when: ansible_os_family == "Debian"
- name: run install script
ansible.builtin.shell:
path: /automation-scripts/scripts/sysadmins/debian-init-docker.sh
when: ansible_os_family == "Debian"
- name: Install certbot
apt:
name: python3-certbot-nginix
state: latest
when: ansible_os_family == "Debian"
- name: Run certbot
shell: