From 03678621c234923cf98cf5f83091d45d73a3879f Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Fri, 31 May 2013 15:24:28 +0000 Subject: [PATCH] move common_scripts to base - and replace it in mirrorlist --- playbooks/groups/mirrorlist.yml | 1 - tasks/base.yml | 10 ++++++++++ tasks/common_scripts.yml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/playbooks/groups/mirrorlist.yml b/playbooks/groups/mirrorlist.yml index 84866f5505..54046cfd46 100644 --- a/playbooks/groups/mirrorlist.yml +++ b/playbooks/groups/mirrorlist.yml @@ -32,7 +32,6 @@ tasks: # this is how you include other task lists - - include: $tasks/common_scripts.yml - include: $tasks/hosts.yml - include: $tasks/yumrepos.yml - include: $tasks/base.yml diff --git a/tasks/base.yml b/tasks/base.yml index db3e869f45..e835f730ed 100644 --- a/tasks/base.yml +++ b/tasks/base.yml @@ -149,3 +149,13 @@ - postfix - config +# +# This task installs some common scripts to /usr/local/bin +# scripts are under $files/common-scripts +# + +- name: Install common scripts + action: copy src=$item dest=/usr/local/bin/ owner=root group=root mode=0755 + with_fileglob: $files/common-scripts/* + tags: + - config diff --git a/tasks/common_scripts.yml b/tasks/common_scripts.yml index a0574d9ca8..08251b8c81 100644 --- a/tasks/common_scripts.yml +++ b/tasks/common_scripts.yml @@ -1,4 +1,4 @@ ---- + # # This task installs some common scripts to /usr/local/bin # scripts are under $files/common-scripts