Removing unneeded with_items usage for clarity
Change-Id: Ia893b793b308da076124f7b97d1e558feaa39277
This commit is contained in:
parent
80b387379e
commit
c35ba5fbce
@ -38,11 +38,9 @@
|
||||
|
||||
- name: Enabled keystone vhost
|
||||
file:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
state: "{{ item.state }}"
|
||||
with_items:
|
||||
- { src: "/etc/apache2/sites-available/keystone-httpd.conf", dest: "/etc/apache2/sites-enabled/keystone-httpd.conf", state: "link" }
|
||||
src: "/etc/apache2/sites-available/keystone-httpd.conf"
|
||||
dest: "/etc/apache2/sites-enabled/keystone-httpd.conf"
|
||||
state: "link"
|
||||
notify:
|
||||
- Restart Apache
|
||||
tags:
|
||||
|
@ -42,13 +42,11 @@
|
||||
|
||||
- name: Drop Keystone Configs
|
||||
copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
src: "sso_callback_template.html"
|
||||
dest: "/etc/keystone/sso_callback_template.html"
|
||||
owner: "{{ keystone_system_user_name }}"
|
||||
group: "{{ keystone_system_group_name }}"
|
||||
mode: "{{ item.mode|default('0644') }}"
|
||||
with_items:
|
||||
- { src: "sso_callback_template.html", dest: "/etc/keystone/sso_callback_template.html" }
|
||||
mode: "0644"
|
||||
notify:
|
||||
- Restart Apache
|
||||
tags:
|
||||
|
@ -107,13 +107,11 @@
|
||||
|
||||
- name: Create keystone log dir
|
||||
file:
|
||||
path: "{{ item.path }}"
|
||||
path: "/var/log/keystone"
|
||||
state: directory
|
||||
owner: "{{ item.owner|default(keystone_system_user_name) }}"
|
||||
group: "{{ item.group|default(keystone_system_group_name) }}"
|
||||
mode: "{{ item.mode|default('0755') }}"
|
||||
with_items:
|
||||
- { path: "/var/log/keystone" }
|
||||
owner: "{{ keystone_system_user_name }}"
|
||||
group: "{{ keystone_system_group_name }}"
|
||||
mode: "0755"
|
||||
when: log_dir.rc != 0
|
||||
tags:
|
||||
- keystone-dirs
|
||||
|
Loading…
Reference in New Issue
Block a user