From 8d07f06bacb87267a2826d66369084f00b25e95b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 17 Jan 2019 20:09:34 +0000 Subject: [PATCH] Move server packages into a vars file --- .ansible/roles/home_server/tasks/basics.yaml | 12 ++---------- .ansible/roles/home_server/vars/main.yaml | 9 +++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 .ansible/roles/home_server/vars/main.yaml diff --git a/.ansible/roles/home_server/tasks/basics.yaml b/.ansible/roles/home_server/tasks/basics.yaml index 8bc6793..301381a 100644 --- a/.ansible/roles/home_server/tasks/basics.yaml +++ b/.ansible/roles/home_server/tasks/basics.yaml @@ -4,13 +4,5 @@ yum: name: "{{ item }}" state: latest - with_items: - - epel-release - - git - - lsof - - net-tools - - psmisc - - rsync - - telnet - - vim - become: true \ No newline at end of file + with_items: "{{ server_packages }}" + become: true diff --git a/.ansible/roles/home_server/vars/main.yaml b/.ansible/roles/home_server/vars/main.yaml new file mode 100644 index 0000000..ce88af9 --- /dev/null +++ b/.ansible/roles/home_server/vars/main.yaml @@ -0,0 +1,9 @@ +server_packages: + - epel-release + - git + - lsof + - net-tools + - psmisc + - rsync + - telnet + - vim