Skip to content

msuzoagu/docker_pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ansible-role: sets up docker to use pass for authentication via docker_credential_helpers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published