Guillaume Coré
2017-12-01 36724ba8e753905de38ffa297b259860f41da0f0
keep original /etc/ansible/hosts

as discussed by mail

- add install_idm default to htpasswd, otherwise variable is undefined, playbook
fails
2 files modified
8 ■■■■■ changed files
ansible/configs/ocp-ha-lab/env_vars.yml 2 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp-ha-lab/post_software.yml 6 ●●●● patch | view | raw | blame | history
ansible/configs/ocp-ha-lab/env_vars.yml
@@ -50,6 +50,8 @@
master_lb_dns: "loadbalancer.{{subdomain_base}}"
cloudapps_suffix: 'apps.{{subdomain_base}}'
openshift_master_ldap_ca_file: 'openshift_master_ldap_ca_file=/root/ca.crt'
# htpasswd / ldap / allow_all
install_idm: htpasswd
 ## If you are not part of GPTE you don't need this.
opentlc_integration: true
ansible/configs/ocp-ha-lab/post_software.yml
@@ -10,7 +10,7 @@
  tags:
    - step005
  tasks:
    - name: Overwrite ansible hosts file with lab hosts file
    - name: Generate /etc/ansible/hosts file with lab hosts template
      template:
        src: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/files/labs_hosts_template.j2"
        dest: "{{ ANSIBLE_REPO_PATH }}/workdir/labs_hosts-{{ env_type }}-{{ guid }}"
@@ -24,9 +24,9 @@
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
  tasks:
    - name: Copy over ansible hosts file
    - name: Copy over ansible hosts file, lab version
      copy:
        backup: no
        backup: yes
        src: "{{ ANSIBLE_REPO_PATH }}/workdir/labs_hosts-{{ env_type }}-{{ guid }}"
        dest: /etc/ansible/hosts
      tags: