You've already forked ansible-docker
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
bd5ef263d7
|
|||
50511720eb
|
@ -54,7 +54,8 @@ jobs:
|
|||||||
|
|
||||||
sync-to-hub-docker-io:
|
sync-to-hub-docker-io:
|
||||||
needs:
|
needs:
|
||||||
- push-manifest
|
- push-arch-linux
|
||||||
|
- push-rocky-linux-8
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Copy images to docker.io
|
- name: Copy images to docker.io
|
||||||
|
@ -45,19 +45,17 @@ MD012:
|
|||||||
# MD013/line-length - Line length
|
# MD013/line-length - Line length
|
||||||
MD013:
|
MD013:
|
||||||
# Number of characters
|
# Number of characters
|
||||||
line_length: 80
|
line_length: 120
|
||||||
# Number of characters for headings
|
# Number of characters for headings
|
||||||
heading_line_length: 80
|
heading_line_length: 120
|
||||||
# Number of characters for code blocks
|
# Number of characters for code blocks
|
||||||
code_block_line_length: 80
|
code_block_line_length: 120
|
||||||
# Include code blocks
|
# Include code blocks
|
||||||
code_blocks: false
|
code_blocks: false
|
||||||
# Include tables
|
# Include tables
|
||||||
tables: false
|
tables: false
|
||||||
# Include headings
|
# Include headings
|
||||||
headings: true
|
headings: true
|
||||||
# Include headings
|
|
||||||
headers: true
|
|
||||||
# Strict length checking
|
# Strict length checking
|
||||||
strict: false
|
strict: false
|
||||||
# Stern length checking
|
# Stern length checking
|
||||||
|
18
README.md
18
README.md
@ -1,3 +1,21 @@
|
|||||||
# ansible
|
# ansible
|
||||||
|
|
||||||
[](https://hub.docker.com/r/volkerraschek/ansible-archlinux)
|
[](https://hub.docker.com/r/volkerraschek/ansible-archlinux)
|
||||||
|
|
||||||
|
This container image can be used to execute ansible. It contains the latest versions of ansible-core, ansible-lint and
|
||||||
|
python-boto3 to interact with AWS dynamic inventory.
|
||||||
|
|
||||||
|
Here is an example. The environment variables as well as the path to the playbook and inventory must of course be
|
||||||
|
adapted to your own needs.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run \
|
||||||
|
--env AWS_ACCESS_KEY_ID \
|
||||||
|
--env AWS_SECRET_ACCESS_KEY \
|
||||||
|
--env AWS_SESSION_TOKEN \
|
||||||
|
--rm \
|
||||||
|
--volume $(pwd):$(pwd) \
|
||||||
|
--workdir $(pwd) \
|
||||||
|
git.cryptic.systems/volkerraschek/ansible:latest \
|
||||||
|
bash -c "ansible-galaxy install -r requirements.yaml && ansible-playbook -i inventories/demo.aws_ec2.yaml aws.yaml"
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user