You've already forked ansible-docker
							
							Compare commits
	
		
			1 Commits
		
	
	
		
			0.1.2
			...
			bfe0fc3289
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| bfe0fc3289 | 
| @@ -1,45 +0,0 @@ | |||||||
| name: Build |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   pull_request: |  | ||||||
|     types: |  | ||||||
|     - "opened" |  | ||||||
|     - "reopened" |  | ||||||
|     - "synchronize" |  | ||||||
|   push: |  | ||||||
|     branches: |  | ||||||
|     - master |  | ||||||
|   workflow_dispatch: {} |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   build-arch-linux: |  | ||||||
|     runs-on: ubuntu-latest-amd64 |  | ||||||
|     steps: |  | ||||||
|       - uses: actions/checkout@v4.2.2 |  | ||||||
|       - uses: docker/setup-qemu-action@v3.6.0 |  | ||||||
|       - uses: docker/setup-buildx-action@v3.10.0 |  | ||||||
|  |  | ||||||
|       - name: Build image |  | ||||||
|         run: | |  | ||||||
|           TAG=latest |  | ||||||
|  |  | ||||||
|           docker buildx build \ |  | ||||||
|             --file Dockerfile.archlinux \ |  | ||||||
|             --tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \ |  | ||||||
|             . |  | ||||||
|  |  | ||||||
|   build-rocky-linux-8: |  | ||||||
|     runs-on: ubuntu-latest-amd64 |  | ||||||
|     steps: |  | ||||||
|       - uses: actions/checkout@v4.2.2 |  | ||||||
|       - uses: docker/setup-qemu-action@v3.6.0 |  | ||||||
|       - uses: docker/setup-buildx-action@v3.10.0 |  | ||||||
|  |  | ||||||
|       - name: Build image |  | ||||||
|         run: | |  | ||||||
|           TAG=latest |  | ||||||
|  |  | ||||||
|           docker buildx build \ |  | ||||||
|             --file Dockerfile.rockylinux8 \ |  | ||||||
|             --tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \ |  | ||||||
|             . |  | ||||||
| @@ -1,77 +0,0 @@ | |||||||
| name: Release |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   push: |  | ||||||
|     tags: |  | ||||||
|     - "**" |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   push-arch-linux: |  | ||||||
|     runs-on: ubuntu-latest-amd64 |  | ||||||
|     steps: |  | ||||||
|       - uses: actions/checkout@v4.2.2 |  | ||||||
|       - uses: docker/setup-qemu-action@v3.6.0 |  | ||||||
|       - uses: docker/setup-buildx-action@v3.10.0 |  | ||||||
|  |  | ||||||
|       - uses: docker/login-action@v3.4.0 |  | ||||||
|         with: |  | ||||||
|           registry: git.cryptic.systems |  | ||||||
|           username: ${{ github.repository_owner }} |  | ||||||
|           password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} |  | ||||||
|  |  | ||||||
|       - name: Build and push image |  | ||||||
|         run: | |  | ||||||
|           TAG=latest |  | ||||||
|  |  | ||||||
|           docker buildx build \ |  | ||||||
|             --file Dockerfile.archlinux \ |  | ||||||
|             --push \ |  | ||||||
|             --tag git.cryptic.systems/volker.raschek/ansible:${TAG}-archlinux \ |  | ||||||
|             . |  | ||||||
|  |  | ||||||
|   push-rocky-linux-8: |  | ||||||
|     runs-on: ubuntu-latest-amd64 |  | ||||||
|     steps: |  | ||||||
|       - uses: actions/checkout@v4.2.2 |  | ||||||
|       - uses: docker/setup-qemu-action@v3.6.0 |  | ||||||
|       - uses: docker/setup-buildx-action@v3.10.0 |  | ||||||
|  |  | ||||||
|       - uses: docker/login-action@v3.4.0 |  | ||||||
|         with: |  | ||||||
|           registry: git.cryptic.systems |  | ||||||
|           username: ${{ github.repository_owner }} |  | ||||||
|           password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} |  | ||||||
|  |  | ||||||
|       - name: Build and push image |  | ||||||
|         run: | |  | ||||||
|           TAG=latest |  | ||||||
|  |  | ||||||
|           docker buildx build \ |  | ||||||
|             --file Dockerfile.rockylinux-8 \ |  | ||||||
|             --push \ |  | ||||||
|             --tag git.cryptic.systems/volker.raschek/ansible:${TAG}-rockylinux-8 \ |  | ||||||
|             . |  | ||||||
|  |  | ||||||
|   sync-to-hub-docker-io: |  | ||||||
|     needs: |  | ||||||
|     - push-arch-linux |  | ||||||
|     - push-rocky-linux-8 |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - name: Copy images to docker.io |  | ||||||
|       run: | |  | ||||||
|         TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') |  | ||||||
|  |  | ||||||
|         apt-get update --yes |  | ||||||
|         apt-get install --yes skopeo |  | ||||||
|  |  | ||||||
|         for suffix in archlinux rockylinux-8; do |  | ||||||
|           skopeo copy \ |  | ||||||
|             --all \ |  | ||||||
|             --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \ |  | ||||||
|             --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ |  | ||||||
|             --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \ |  | ||||||
|             --src-username volker.raschek \ |  | ||||||
|               docker://git.cryptic.systems/volker.raschek/ansible:${TAG}-${suffix} \ |  | ||||||
|               docker://docker.io/volkerraschek/ansible:${TAG}-${suffix} |  | ||||||
|         done |  | ||||||
| @@ -1,21 +0,0 @@ | |||||||
| name: Update Docker Hub Description |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   push: |  | ||||||
|     branches: |  | ||||||
|     - master |  | ||||||
|     paths: |  | ||||||
|     - README.md |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   update-description-on-hub-docker-io: |  | ||||||
|     runs-on: |  | ||||||
|     - ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|     - uses: actions/checkout@v4.2.2 |  | ||||||
|     - uses: peter-evans/dockerhub-description@v4.0.2 |  | ||||||
|       with: |  | ||||||
|         username: ${{ secrets.DOCKER_IO_USERNAME }} |  | ||||||
|         password: ${{ secrets.DOCKER_IO_PASSWORD }} |  | ||||||
|         repository: volkerraschek/ansible |  | ||||||
|         readme-filepath: README.md |  | ||||||
| @@ -45,17 +45,19 @@ MD012: | |||||||
| # MD013/line-length - Line length | # MD013/line-length - Line length | ||||||
| MD013: | MD013: | ||||||
|   # Number of characters |   # Number of characters | ||||||
|   line_length: 120 |   line_length: 80 | ||||||
|   # Number of characters for headings |   # Number of characters for headings | ||||||
|   heading_line_length: 120 |   heading_line_length: 80 | ||||||
|   # Number of characters for code blocks |   # Number of characters for code blocks | ||||||
|   code_block_line_length: 120 |   code_block_line_length: 80 | ||||||
|   # 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 | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| FROM docker.io/library/rockylinux:8 | FROM docker.io/library/rockylinux:9 | ||||||
|  |  | ||||||
| RUN dnf update --assumeyes && \ | RUN dnf update --assumeyes && \ | ||||||
|     dnf install --assumeyes bash-completion sudo && \ |     dnf install --assumeyes bash-completion sudo && \ | ||||||
|   | |||||||
							
								
								
									
										21
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,21 +1,4 @@ | |||||||
| # ansible | # ansible-archlinux-docker | ||||||
|  |  | ||||||
|  | [](https://drone.cryptic.systems/volker.raschek/ansible-archlinux-docker) | ||||||
| [](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