Qualify some more ansible and ansible-puull related stuff
This commit is contained in:
parent
af1d6d7905
commit
4b543de41e
@ -10,6 +10,8 @@
|
|||||||
mode: "0600"
|
mode: "0600"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: ansible
|
become_user: ansible
|
||||||
|
- name: Configure systemd unit
|
||||||
|
block:
|
||||||
- name: Template out services
|
- name: Template out services
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@ -26,4 +28,5 @@
|
|||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
notify: restart ansiblepull timer
|
notify: restart ansiblepull timer
|
||||||
|
when: ansible_service_mgr == "systemd"
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -5,15 +5,23 @@
|
|||||||
block:
|
block:
|
||||||
- name: Install Ansible-required packages via apt
|
- name: Install Ansible-required packages via apt
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name:
|
||||||
vars:
|
|
||||||
packages:
|
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3-boto
|
- python3-boto
|
||||||
- python3-boto3
|
- python3-boto3
|
||||||
- python3-botocore
|
- python3-botocore
|
||||||
- python3-setuptools
|
- python3-setuptools
|
||||||
become: true
|
become: true
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
|
- name: Install Ansible-required packages via apk
|
||||||
|
apk:
|
||||||
|
name:
|
||||||
|
- py3-pip
|
||||||
|
- py3-boto
|
||||||
|
- py3-boto3
|
||||||
|
- py3-botocore
|
||||||
|
- py3-setuptools
|
||||||
|
when: ansible_distribution == "Alpine"
|
||||||
- name: Install Ansible-required packages via pip
|
- name: Install Ansible-required packages via pip
|
||||||
pip:
|
pip:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user