client-pull-installation/roles/base/tasks/ansible-pull.yml

28 lines
768 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: Checking for installation of ansible
apt:
name: ansible
state: present
- name: Updating ansible-pull custom scripts
get_url:
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/{{ item }}"
dest: "/var/lib/{{ ansible_local.domain.domainfull }}/bin/{{ item }}"
force: yes
with_items:
- getvaultpass.py
- ansible-pull.sh
- name: Updating crontab for ansible-pull
get_url:
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/crontab"
dest: /etc/cron.d/ansible-pull
force: yes
- name: Updating logrotate settings for ansible-pull
get_url:
url: "http://{{ ansible_local.domain.serverfqdn }}/ks/ansible-pull/logrotate"
dest: /etc/logrotate.d/ansible-pull
force: yes