Sign inSign up

sineverba/ansible

By sineverba

•Updated 4 months ago

Docker image to use Ansible without install it

Image
0

1.7K

sineverba/ansible repository overview

⁠Docker Ansible

Docker image to use Ansible without install it

CI / CDStatus
SemaphoreBuild Status

⁠Run

  1. (If needed) setup openssh-server

    # apt-get install openssh-server

  2. Copy your ssh keys into destination servers / desktops

    ssh-copy-id -i /home/sineverba/.ssh/id_ed25519.pub [email protected]

  3. Be sure that you can log to the server / desktop without password

    ssh [email protected]

  4. Launch Ansible with

    docker run \
    --rm -it \
    -v ${pwd}/playbook:/playbook:ro \
    -v ~/.ssh:/ssh:ro \
    --name ansible \
    sineverba/ansible:latest \
    # -v or -vvv or -vvvv for debug
    # --skip-tags "pihole" \ # Add --skip-tags to skip tags, in the form of --skip-tags "a,b,c"
    -i /playbook/inventory.yml \
    /playbook/desktop.yml \ # select your playbook
    -e username=user \ # select your username
    -e ansible_become_pass=yourRootPasswordHere # your root passwd
    
  5. To pass the password of sudo, append --extra-vars 'ansible_become_pass=your-password'

⁠Available architectures

  • linux/arm64/v8
  • linux/amd64
⁠Upgrade requirements

$ make upgrade

Tag summary

Content type

Image

Digest

sha256:2eddabd29…

Size

227.6 MB

Last updated

4 months ago

docker pull sineverba/ansible