Qualify some more ansible and ansible-puull related stuff
This commit is contained in:
parent
af1d6d7905
commit
4b543de41e
@ -10,20 +10,23 @@
|
|||||||
mode: "0600"
|
mode: "0600"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: ansible
|
become_user: ansible
|
||||||
- name: Template out services
|
- name: Configure systemd unit
|
||||||
template:
|
block:
|
||||||
src: "{{ item.src }}"
|
- name: Template out services
|
||||||
dest: "{{ item.dest }}"
|
template:
|
||||||
mode: "{{ item.mode }}"
|
src: "{{ item.src }}"
|
||||||
loop:
|
dest: "{{ item.dest }}"
|
||||||
- { src: "ansible-pull.service", dest: "/etc/systemd/system/ansible-pull.service", mode: "0644" }
|
mode: "{{ item.mode }}"
|
||||||
- { src: "ansible-pull.timer", dest: "/etc/systemd/system/ansible-pull.timer", mode: "0644" }
|
loop:
|
||||||
notify: restart ansiblepull timer
|
- { src: "ansible-pull.service", dest: "/etc/systemd/system/ansible-pull.service", mode: "0644" }
|
||||||
- name: Enable timer
|
- { src: "ansible-pull.timer", dest: "/etc/systemd/system/ansible-pull.timer", mode: "0644" }
|
||||||
systemd:
|
notify: restart ansiblepull timer
|
||||||
daemon_reload: yes
|
- name: Enable timer
|
||||||
name: ansible-pull.timer
|
systemd:
|
||||||
enabled: yes
|
daemon_reload: yes
|
||||||
state: started
|
name: ansible-pull.timer
|
||||||
notify: restart ansiblepull timer
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
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