Spaces:
No application file
No application file
File size: 854 Bytes
53b59a6 82a2f16 53b59a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
---
- name: Initial Setup
hosts: all
become: yes
vars_files:
- ../vars/secrets.yml
vars:
repo_dest: '/opt/CS_553'
tasks:
- name: Check if initial setup flag file exists
stat:
path: /home/ubuntu/.initial_setup_complete
register: setup_flag
- name: Run initial setup shell script with Tailscale key
command: >
{{ repo_dest }}/deployment/02_deploy_to_controller/scripts/initial_ssh_config.sh -k {{ tailscale_authkey }}
args:
chdir: "{{ repo_dest }}/deployment/02_deploy_to_controller"
become_user: ubuntu
when: not setup_flag.stat.exists
- name: Create initial setup flag file
file:
path: /home/ubuntu/.initial_setup_complete
state: touch
owner: ubuntu
group: ubuntu
mode: '0644'
when: not setup_flag.stat.exists
|