Skip to content

Commit

Permalink
doc: ansible user guide.v1
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq committed Mar 16, 2024
1 parent aa5d7b5 commit d3dacf8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ docker run --network host --rm devops-toolkit:latest samples/run_sample.sh
## User guide

- [DevOps toolkit user guide](./docs/usage/)
- [Troubleshooting](./docs/troubleshooting/)

## The DevOps Toolkit Core

Expand Down
6 changes: 3 additions & 3 deletions docs/usage/ansible_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ docker run --rm --network host -it devops-toolkit:latest
# You now in the container terminal

# Clone code
mkdir python_workspace
cd python_workspace
mkdir ansible_workspace
cd ansible_workspace
git clone https://github.com/geekcomputers/Python.git

# Now run your cloned script
Expand All @@ -36,7 +36,7 @@ Clone the code to the host then mount to container

```bash
# Clone code on the host
docker run --rm -v "$(pwd)":/root/python_workspace --network host -it devops-toolkit:latest
docker run --rm -v "$(pwd)":/root/ansible_workspace --network host -it devops-toolkit:latest
# Run the python code as usual
```

Expand Down
6 changes: 3 additions & 3 deletions docs/usage/python_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ docker run --rm --network host -it devops-toolkit:latest
# You now in the container terminal

# Clone code
mkdir ansible_workspace
cd ansible_workspace
mkdir python_workspace
cd python_workspace
git clone https://github.com/ansible/ansible-examples.git

# Now run your cloned script
Expand All @@ -36,7 +36,7 @@ ansible-playbook <YOUR_PLAYBOOK_CMD>
Clone the code to the host then mount to container

```bash
docker run --rm -v "$(pwd)":/root/ansible-examples --network host -it devops-toolkit:latest
docker run --rm -v "$(pwd)":/root/python_workspace --network host -it devops-toolkit:latest
# Run the python code as usual
```

Expand Down

0 comments on commit d3dacf8

Please sign in to comment.