Skip to content

Commit a838875

Browse files
committed
ansible1, 2: updated curl paths to correct github repo, updated ansible playbooks executions to be a single cli command
1 parent 89c5e23 commit a838875

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

_partials/ubuntu_ansible_part1.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ Create a folder and download the ansible files:
3030

3131
```bash
3232
mkdir -p ~/vm-ansible-setup/playbooks
33+
```
3334

34-
curl -L -o ~/vm-ansible-setup/ansible.cfg https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/vm-ansible-setup/ansible.cfg
35-
curl -L -o ~/vm-ansible-setup/hosts https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/vm-ansible-setup/hosts
36-
curl -L -o ~/vm-ansible-setup/playbooks/setup_vm_part1.yml https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml
35+
```bash
36+
curl -L -o ~/vm-ansible-setup/ansible.cfg https://raw.githubusercontent.com/lewagon/data-engineering-setup/main-automation/automation/vm-ansible-setup/ansible.cfg \
37+
&& curl -L -o ~/vm-ansible-setup/hosts https://raw.githubusercontent.com/lewagon/data-engineering-setup/main-automation/automation/vm-ansible-setup/hosts \
38+
&& curl -L -o ~/vm-ansible-setup/playbooks/setup_vm_part1.yml https://raw.githubusercontent.com/lewagon/data-engineering-setup/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part1.yml
3739
```
3840

3941
And run with:
4042

4143
```bash
42-
cd ~/vm-ansible-setup
43-
ansible-playbook playbooks/setup_vm_part1.yml
44+
cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part1.yml
4445
```
4546

4647
And the playbook should start running!

_partials/ubuntu_ansible_part2.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ We'll be using a second **Ansible** playbook to further configure your Virtual M
99
Start by downloading the ansible playbook:
1010

1111
```bash
12-
curl -L -o ~/vm-ansible-setup/playbooks/setup_vm_part2.yml https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/vm-ansible-setup/playbooks/setup_vm_part2.yml
12+
curl -L -o ~/vm-ansible-setup/playbooks/setup_vm_part2.yml https://raw.githubusercontent.com/lewagon/data-engineering-setup/main-automation/automation/vm-ansible-setup/playbooks/setup_vm_part2.yml
1313
```
1414

1515
And run with:
1616

1717
```bash
18-
cd ~/vm-ansible-setup
19-
ansible-playbook playbooks/setup_vm_part2.yml
18+
cd ~/vm-ansible-setup && ansible-playbook playbooks/setup_vm_part2.yml
2019
```
2120

2221
And the playbook should start running! If you're asked if you want VS Code to behave more like Sublime Text, click accept.
@@ -84,4 +83,4 @@ Select your VM instance and click on the stop button:
8483

8584
Wait for a few minutes until the VM shows that it is completely off. You may need to refresh the page, the GCP Console doesn't dynamically update.
8685

87-
When the VM is completely off, turn it on again by selecting the check box next to your instance and clicking **START/RESUME**. Give it a minute to spin up, then connect via VS Code.
86+
When the VM is completely off, turn it on again by selecting the check box next to your instance and clicking **START/RESUME**. Give it a minute to turn on, then connect via VS Code.

0 commit comments

Comments
 (0)