workflow/automatisation/ansible/riseup_checks.yml

24 lines
514 B
YAML
Raw Normal View History

2023-08-15 22:35:32 +02:00
- name: vérifier les services de riseup
hosts: localhost
become: true
become_user: root
vars:
server_name: localhost
tasks:
- name: Make sure there is no 'apache2'
systemd:
name: apache2
state: stopped
enabled: no
register: result_apache
- name: Make sure 'nginx' is started
systemd:
name: nginx
state: started
enabled: yes
register: result_nginx
- name: Show result
debug:
msg: "{{ result_nginx }}"