| | |
| | | debug: |
| | | msg: "Setting up workload for user ocp_username = {{ ocp_username }}" |
| | | |
| | | - name: Create a directory if it does not exist |
| | | file: |
| | | path: /opt/apb/id_rsa |
| | | state: directory |
| | | mode: '0755' |
| | | |
| | | - name: Generate a brand new SSH key on MASTER that will be used also by APB container (provision.yml) |
| | | shell: "ssh-keygen -N '' -f /opt/apb/id_rsa" |
| | | |
| | | - name: add new ssh-key as authorized on BASTION host |
| | | shell: cat /opt/apb/id_rsa | ssh -i /root/.ssh/milan-fa8ckey.pem ec2-user@bastion 'cat >> .ssh/authorized_keys' |
| | | shell: "cat /opt/apb/id_rsa | ssh -i /root/.ssh/milan-fa8ckey.pem ec2-user@bastion 'cat >> .ssh/authorized_keys'" |
| | | |
| | | - name: Create project for IoT Development |
| | | shell: "oc new-project iot-development" |