msuzoagu.docker_pass

Role Name

Sets up docker to use pass for authentication via docker_credential_helpers

Requirements

  • Docker If following security best practice and running docker as non-root user, note that due to tty owership requirements, this role is effective only when both:

Role tested on:

  • docker-ce | 5:18.09.13-0ubuntu-xenial

Operating System

  • Ubuntu:
    • Bionic 18.04 (LTS) (x64)

Role Variables

See examples in vars folder

Dependencies

None

Example Playbook

Given playbook_path/file_name:

- name: Use docker-credential-pass for authentication 
    hosts: docker_hosts
    gather_facts: yes
    remote_user: "{{ docker_user.name }}" 
    vars: 
        ansible_ssh_private_key_file: "{{ docker_user.private_key }}"
    roles:  
        - docker_pass

run:

ansible-playbook -i inventory_path playbook_path/file_name.yaml

License

BSD

Author Information

Uzo Agu

About

use pass for docker authentication via docker_credential_helpers

Install
ansible-galaxy install msuzoagu.docker_pass
GitHub repository
License
Unknown
Downloads
46
Owner
Builder && Reader