Skip to content

Commit

Permalink
ansible installation [wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Mar 11, 2024
1 parent 4dd1443 commit c274348
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ansible/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

tasks:

- name: Restart postgres
- name: Start postgres
become: true
service:
name: postgresql
state: restarted
state: started

- name: Change permissions on start script
become: true
Expand All @@ -18,6 +18,10 @@
connection: local
gather_facts: false
tasks:
- name: Execute script

- name: Execute start script on the leader node
command: "python /home/{{ user }}/csle/ansible/start_services.py {{ leader_ip }} {{ user }} {{ conda_environment_name }}"
register: script_output

- name: Execute start scripts on the worker nodes
command: "python /home/{{ user }}/csle/ansible/start_services.py {{ item }} {{ user }} {{ conda_environment_name }}"
loop: "{{ groups['worker'] }}"

0 comments on commit c274348

Please sign in to comment.