Skip to content

Commit

Permalink
Replace ansible.builtin.shell by ansible.builtin.command
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Jan 8, 2024
1 parent 94c1457 commit 91f82fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions roles/deploy_flask_app/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# dependencies:
# - role: cloud.aws_ops.aws_setup_credentials
# allow_duplicates: true
dependencies:
- role: cloud.aws_ops.aws_setup_credentials
allow_duplicates: true
12 changes: 5 additions & 7 deletions roles/deploy_flask_app/tasks/start_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@
deploy_flask_app_worker_hostname: "{{ '{{' }} inventory_hostname {{ '}}' }}"

- name: Deploy application into workers
ansible.builtin.shell:
cmd: >-
ansible-playbook
-i {{ deploy_flask_app_workers_inventory_file }}
{{ deploy_flask_app_workers_playbook_file }}
-v
changed_when: false
ansible.builtin.command: >-
ansible-playbook
--inventory {{ deploy_flask_app_workers_inventory_file }}
{{ deploy_flask_app_workers_playbook_file }}
-v

0 comments on commit 91f82fb

Please sign in to comment.