Files
semaphore/all.yml

44 lines
1015 B
YAML

---
- name: Main playbook for common services
hosts: all
become: true
# #
# # @author Stéphane Gratias (2023).
# #
pre_tasks:
- name: >-
Show target servers -> Hostname : OS - IP
debug:
msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}"
tags:
- always
- test
- name: Ensure specified repository packages are into sources list
ansible.builtin.apt_repository:
repo: "{{ item }}"
state: present
loop: "{{ apt_repositories_sources }}"
tags:
- repo
roles:
- { role: grog.management-user, tags: user }
- { role: willshersystems.sshd, tags: ssh }
- { role: claranet.apt, tags: apt }
- { role: robertdebock.fail2ban, tags: ban }
- { role: ome.rsync_server, tags: rsync }
tasks:
# - name: Show ssh backup
# debug:
# msg: "{{ ssh_backup }}"
# tags:
# - always
# - test