Skip to content

Commit 69846b4

Browse files
committed
Add command line playbook deployment.
1 parent 17c0ca2 commit 69846b4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

multinode-app.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525

2626
- hosts: localhost
2727
tasks:
28-
# - block:
28+
- block:
2929
# Install the ansible requirements
30-
# - name: Install ansible requirements
31-
# command: ansible-galaxy install -r ansible/requirements.yml
30+
- name: Install ansible requirements
31+
command: ansible-galaxy install -r ansible/requirements.yml
32+
33+
- name: Deploy ansible playbook manually
34+
command: ansible-playbook -i ansible/inventory.yml ansible/configure-hosts.yml
3235

3336
# Import the playbook to start configuring the multi-node hosts.
3437
#- name: Configure hosts and deploy ansible
@@ -44,7 +47,7 @@
4447
msg: "{{ groups | to_yaml }}"
4548
# when: cluster_state != "absent"
4649

47-
- hosts: multinode_ansible_control
48-
tasks:
49-
- name: Test hostname
50-
command: hostname
50+
# - hosts: multinode_ansible_control
51+
# tasks:
52+
# - name: Test hostname
53+
# command: hostname

0 commit comments

Comments
 (0)