Change with_fileglob so appropriate remote files are listed
* with_fileglob works locally only * Move to "ls" with a register and run chmod against the returned list. * Adjust formatting on task in raxmon_agent_install task Change-Id: Ied6d077784300c457644fed6396d62bc88bdbc24 Closes-Bug: 1399426
This commit is contained in:
parent
f91bee9951
commit
e9004c0593
@ -19,18 +19,23 @@
|
||||
dest: /usr/lib/rackspace-monitoring-agent/plugins/
|
||||
version: "{{ git_install_branch }}"
|
||||
|
||||
- name: Chmod plugins
|
||||
file: path={{ item }} mode=0755
|
||||
with_fileglob:
|
||||
- /usr/lib/rackspace-monitoring-agent/plugins/*.py
|
||||
- name: List plugin files to chmod
|
||||
shell: "ls -1 /usr/lib/rackspace-monitoring-agent/plugins/*.py"
|
||||
register: plugin_files
|
||||
|
||||
- name: Chmod listed plugin files
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
mode: "0755"
|
||||
with_items: plugin_files.stdout_lines
|
||||
|
||||
- name: Create openrc file
|
||||
template: >
|
||||
src=openrc
|
||||
dest=/root/openrc-maas
|
||||
owner=root
|
||||
group=root
|
||||
mode=0600
|
||||
template:
|
||||
src: "openrc"
|
||||
dest: "/root/openrc-maas"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0600"
|
||||
|
||||
- name: Install python dependencies
|
||||
pip:
|
||||
|
Loading…
x
Reference in New Issue
Block a user