fixed deprecation warnings regarding bare variables

This commit is contained in:
teuto.net Netzdienste GmbH 2016-03-30 10:23:43 +02:00
parent ed9a521d6d
commit 457ed11b49
7 changed files with 13 additions and 13 deletions

View file

@ -15,7 +15,7 @@
- name: User | Create User Group
group: name={{item.group|default(item.name)}} system={{item.system|default(omit)}}
with_items: addusers
with_items: "{{ addusers }}"
- name: User | Create User
user:
@ -25,4 +25,4 @@
home: "{{item.home|default(omit)}}"
name: "{{item.name}}"
system: "{{item.system|default(omit)}}"
with_items: addusers
with_items: "{{ addusers }}"

View file

@ -47,7 +47,7 @@
resource: "{{item.item.type}}"
filename: /etc/kubernetes/{{item.item.file}}
state: "{{item.changed | ternary('latest','present') }}"
with_items: manifests.results
with_items: "{{ manifests.results }}"
when: inventory_hostname == groups['kube-master'][0]
- name: Check for dnsmasq port (pulling image and running container)

View file

@ -28,14 +28,14 @@
id: "{{item}}"
keyserver: "{{docker_repo_key_info.keyserver}}"
state: present
with_items: docker_repo_key_info.repo_keys
with_items: "{{ docker_repo_key_info.repo_keys }}"
- name: ensure docker repository is enabled
action: "{{ docker_repo_info.pkg_repo }}"
args:
repo: "{{item}}"
state: present
with_items: docker_repo_info.repos
with_items: "{{ docker_repo_info.repos }}"
when: docker_repo_info.repos|length > 0
- name: ensure docker packages are installed
@ -43,7 +43,7 @@
args:
pkg: "{{item}}"
state: present
with_items: docker_package_info.pkgs
with_items: "{{ docker_package_info.pkgs }}"
when: docker_package_info.pkgs|length > 0
- name: Centos needs xfs storage type for devicemapper if used

View file

@ -1,7 +1,7 @@
---
- name: Create dest directories
file: path={{local_release_dir}}/{{item.dest|dirname}} state=directory recurse=yes
with_items: downloads
with_items: "{{ downloads }}"
- name: Download items
get_url:
@ -10,7 +10,7 @@
sha256sum: "{{item.sha256 | default(omit)}}"
owner: "{{ item.owner|default(omit) }}"
mode: "{{ item.mode|default(omit) }}"
with_items: downloads
with_items: "{{ downloads }}"
- name: Extract archives
unarchive:
@ -20,7 +20,7 @@
mode: "{{ item.mode|default(omit) }}"
copy: no
when: "{{item.unarchive is defined and item.unarchive == True}}"
with_items: downloads
with_items: "{{ downloads }}"
- name: Fix permissions
file:
@ -29,4 +29,4 @@
owner: "{{ item.owner|default(omit) }}"
mode: "{{ item.mode|default(omit) }}"
when: "{{item.unarchive is not defined or item.unarchive == False}}"
with_items: downloads
with_items: "{{ downloads }}"

View file

@ -45,7 +45,7 @@
- meta: flush_handlers
- include: start.yml
with_items: groups['kube-master']
with_items: "{{ groups['kube-master'] }}"
when: "{{ hostvars[item].inventory_hostname == inventory_hostname }}"
# Create kube-system namespace

View file

@ -8,7 +8,7 @@
create: yes
backup: yes
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
with_items: "{{ groups['all'] }}"
- name: Hosts | populate kubernetes loadbalancer address into hosts file
lineinfile:

View file

@ -48,4 +48,4 @@
file:
path: "{{ item }}"
mode: 0600
with_items: keyfiles.stdout_lines
with_items: "{{ keyfiles.stdout_lines }}"