Removed warnings for missing "| bool" when running under Ansible 2.8
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -y -f "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}" > "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}.pub" |
| | | args: |
| | | creates: "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: PreSoftware flight-check |
| | | hosts: localhost |
| | |
| | | shell: ssh-keygen -y -f "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}" > "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}.pub" |
| | | args: |
| | | creates: "{{ ANSIBLE_REPO_PATH }}/workdir/{{ env_authorized_key }}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: PreSoftware flight-check |
| | | hosts: localhost |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}//{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | - common_tasks |
| | | roles: |
| | | - { role: "set-repositories", when: 'repo_method is defined' } |
| | | - { role: "common", when: 'install_common' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } |
| | | - { role: "common", when: 'install_common | bool' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key | bool' } |
| | | |
| | | - name: Configuring Bastion Hosts |
| | | hosts: bastions |
| | | become: true |
| | | roles: |
| | | - { role: "bastion", when: 'install_bastion' } |
| | | - { role: "bastion-student-user", when: 'install_student_user' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client' } |
| | | - { role: "bastion", when: 'install_bastion | bool' } |
| | | - { role: "bastion-student-user", when: 'install_student_user | bool' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client | bool' } |
| | | tags: |
| | | - step004 |
| | | - bastion_tasks |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | |
| | |
| | | - common_tasks |
| | | roles: |
| | | - { role: "set-repositories", when: 'repo_method is defined' } |
| | | - { role: "common", when: 'install_common' } |
| | | - { role: "common", when: 'install_common | bool' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } |
| | | |
| | | - name: PreSoftware flight-check |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | - common_tasks |
| | | roles: |
| | | - { role: "set-repositories", when: 'repo_method is defined' } |
| | | - { role: "common", when: 'install_common' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } |
| | | - { role: "common", when: 'install_common | bool' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key | bool' } |
| | | |
| | | - name: Configuring Bastion Hosts |
| | | hosts: bastions |
| | | become: true |
| | | roles: |
| | | - { role: "bastion", when: 'install_bastion' } |
| | | - { role: "bastion-student-user", when: 'install_student_user' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client' } |
| | | - { role: "bastion", when: 'install_bastion | bool' } |
| | | - { role: "bastion-student-user", when: 'install_student_user | bool' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client | bool' } |
| | | tags: |
| | | - step004 |
| | | - bastion_tasks |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | - common_tasks |
| | | roles: |
| | | - { role: "set-repositories", when: 'repo_method is defined' } |
| | | - { role: "common", when: 'install_common' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } |
| | | - { role: "common", when: 'install_common | bool' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key | bool' } |
| | | |
| | | - name: Configuring Bastion Hosts |
| | | hosts: bastions |
| | | become: true |
| | | roles: |
| | | - { role: "bastion", when: 'install_bastion' } |
| | | - { role: "bastion-student-user", when: 'install_student_user' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client' } |
| | | - { role: "bastion", when: 'install_bastion | bool' } |
| | | - { role: "bastion-student-user", when: 'install_student_user | bool' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client | bool' } |
| | | tags: |
| | | - step004 |
| | | - bastion_tasks |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | - common_tasks |
| | | roles: |
| | | - { role: "set-repositories", when: 'repo_method is defined' } |
| | | - { role: "common", when: 'install_common' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key' } |
| | | - { role: "common", when: 'install_common | bool' } |
| | | - { role: "set_env_authorized_key", when: 'set_env_authorized_key | bool' } |
| | | |
| | | - name: Configuring Bastion Hosts |
| | | hosts: bastions |
| | | become: true |
| | | roles: |
| | | - { role: "bastion", when: 'install_bastion' } |
| | | - { role: "bastion-student-user", when: 'install_student_user' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client' } |
| | | - { role: "bastion", when: 'install_bastion | bool' } |
| | | - { role: "bastion-student-user", when: 'install_student_user | bool' } |
| | | - { role: "bastion-opentlc-ipa", when: 'install_ipa_client | bool' } |
| | | tags: |
| | | - step004 |
| | | - bastion_tasks |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | # Cloudformation template or equivalent should tag all hosts with Project:{{ env_type }}-{{ guid }} |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | |
| | | - name: Configure all hosts with Repositories, Common Files and Set environment key |
| | |
| | | shell: ssh-keygen -b 2048 -t rsa -f "{{output_dir}}/{{env_authorized_key}}" -q -N "" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: fix permission |
| | | file: |
| | | path: "{{output_dir}}/{{env_authorized_key}}" |
| | | mode: 0400 |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | | |
| | | - name: Generate SSH pub key |
| | | shell: ssh-keygen -y -f "{{output_dir}}/{{env_authorized_key}}" > "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | args: |
| | | creates: "{{output_dir}}/{{env_authorized_key}}.pub" |
| | | when: set_env_authorized_key |
| | | when: set_env_authorized_key | bool |
| | |
| | | - name: Update all Packages and Reboot VMs |
| | | when: |
| | | - update_packages|bool |
| | | - not hostvars.localhost.skip_packer_tasks | d(false) |
| | | - not hostvars.localhost.skip_packer_tasks | d(false) | bool |
| | | tags: packer |
| | | block: |
| | | - name: Update all packages |