From 41d9157971240733dd3d9c4cf10bb9bb284e2f04 Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 24 Sep 2021 12:57:31 -0500 Subject: [PATCH] Separate Ansible installation out into its own role --- roles/ansible-pull/meta/main.yml | 5 +++++ roles/ansible/README.md | 3 +++ roles/ansible/tasks/main.yml | 5 +++++ 3 files changed, 13 insertions(+) create mode 100644 roles/ansible-pull/meta/main.yml create mode 100644 roles/ansible/README.md create mode 100644 roles/ansible/tasks/main.yml diff --git a/roles/ansible-pull/meta/main.yml b/roles/ansible-pull/meta/main.yml new file mode 100644 index 0000000..27aa198 --- /dev/null +++ b/roles/ansible-pull/meta/main.yml @@ -0,0 +1,5 @@ +#!/usr/bin/env ansible-playbook +# vim:ft=ansible: +--- +dependencies: + role: ansible diff --git a/roles/ansible/README.md b/roles/ansible/README.md new file mode 100644 index 0000000..e87967d --- /dev/null +++ b/roles/ansible/README.md @@ -0,0 +1,3 @@ +# ansible-pull + +This role configures and enables a period `ansible-pull` task through systemd, allowing for machines to ensure proper configuration periodically and of their own volition. diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml new file mode 100644 index 0000000..4248375 --- /dev/null +++ b/roles/ansible/tasks/main.yml @@ -0,0 +1,5 @@ +#!/usr/bin/env ansible-playbook +# vim:ft=ansible: +- name: install ansible + pip: name=ansible<5,ansible-lint state=latest + when: ansible_os_family != "Gentoo"