From 7778e014f086a0bce5e3ed64135ed92fa3a01283 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 10 May 2019 18:19:04 +0000 Subject: [PATCH] when making a new playbook always make sure you give the hosts the correct name. ansible will just keep running and will say it completed everything even if nothing got done. --- ...grobisplitter01.phx2.fedoraproject.org.yml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/playbooks/hosts/grobisplitter01.phx2.fedoraproject.org.yml b/playbooks/hosts/grobisplitter01.phx2.fedoraproject.org.yml index 7f78db7e36..955c09ac6f 100644 --- a/playbooks/hosts/grobisplitter01.phx2.fedoraproject.org.yml +++ b/playbooks/hosts/grobisplitter01.phx2.fedoraproject.org.yml @@ -2,7 +2,7 @@ - import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=grobisplitter" - name: make the box be real - hosts: nagios + hosts: grobisplitter user: root gather_facts: True @@ -30,3 +30,22 @@ handlers: - import_tasks: "{{ handlers_path }}/restart_services.yml" +- name: set up packages + hosts: grobisplitter + user: root + gather_facts: True + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + handlers: + - import_tasks: "{{ handlers_path }}/restart_services.yml" + + + tasks: + - name: install needed packages + package: name={{ item }} state=present + with_items: + - rsync + - net-tools + - libmodulemd