a3620ba5e7
* postgres-update für 2004 * Rolle Create USers entfernt, Nutzer wird jetzt durch nickjj.ansible_user erstellt * Reihenfolge Tasks angepasst * Rolle create_users angepasst * wip * linter * github Actions Version angepasst * Rolle geerlingguy.ansible hinzugefügt * neue Ansible Version * Version github actions
34 lines
976 B
YAML
34 lines
976 B
YAML
---
|
|
- name: Set the package state based on how Ansible is installed.
|
|
set_fact:
|
|
ansible_package_state: "{{ 'present' if ansible_install_method == 'package' else 'absent' }}"
|
|
|
|
# Setup/install tasks.
|
|
- name: Set up Ansible on RedHat.
|
|
include_tasks: setup-RedHat.yml
|
|
when:
|
|
- ansible_os_family == 'RedHat'
|
|
- ansible_distribution != 'Fedora'
|
|
- ansible_install_method == 'package'
|
|
|
|
- name: Set up Ansible on Fedora.
|
|
include_tasks: setup-Fedora.yml
|
|
when:
|
|
- ansible_distribution == 'Fedora'
|
|
- ansible_install_method == 'package'
|
|
|
|
- name: Set up Ansible on Ubuntu.
|
|
include_tasks: setup-Ubuntu.yml
|
|
when:
|
|
- ansible_distribution == 'Ubuntu'
|
|
- ansible_install_method == 'package'
|
|
|
|
- name: Set up Ansible on Debian.
|
|
include_tasks: setup-Debian.yml
|
|
when:
|
|
- ansible_distribution == 'Debian'
|
|
- ansible_install_method == 'package'
|
|
|
|
- name: Set up Ansible using Pip.
|
|
include_tasks: setup-pip.yml
|
|
when: ansible_install_method == 'pip'
|