ansible-ansible-openshift-ansible

Ansible playbooks to run ansible on a remote "openshift control" what will run openshift-ansible to deploy a cluster

Commit e8070a5 fix cluster inventory template, don't require cluster name variable

2 files Authored and Committed by maxamillion 3 months ago
fix cluster inventory template, don't require cluster name variable

Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>

    
@@ -16,10 +16,10 @@
      - name: create the inventory file
        template:
          src: "templates/cluster-inventory.j2"
-         dest: "{{ openshift_ansible_path }}/{{ cluster_inventory_filename }}"
+         dest: "{{ openshift_ansible_path }}/cluster-inventory"
  
      - name: run ansible
-       shell: "ansible-playbook {{ openshift_ansible_playbook }} -i {{ cluster_inventory_filename }}"
+       shell: "ansible-playbook {{ openshift_ansible_playbook }} -i cluster-inventory"
        args:
          chdir: "{{ openshift_ansible_path }}"
        register: run_ansible_out
@@ -30,6 +30,6 @@
  {% for host in groups[openshift_cluster_masters_group] %}
  {{ host }} openshift_node_labels="{'region':'infra'}" openshift_schedulable=False
  {% endfor %}
- {% for host in openshift_cluster_nodes_group %}
+ {% for host in groups[openshift_cluster_nodes_group] %}
  {{ host }} openshift_node_labels="{'region': 'primary', 'zone': 'default'}"
  {% endfor %} 
\ No newline at end of file