Sha256: ef9020a89b7764e2e716d91ce23b3bec94174702fd1ea79830bcbc3a7adc3c40

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

- name: Create deployer user ssh dir
  file: path=/home/{{ deployer_user.name }}/.ssh
    state=directory
    owner={{ deployer_user.name }}
    group=users
    mode=744

- name: Copy of root ssh keys
  command: "cp /root/.ssh/authorized_keys /home/{{ deployer_user.name }}/.ssh/authorized_keys"

- name: Ensure deployer owns the authorized keys file
  file: path="/home/{{ deployer_user.name }}/.ssh/authorized_keys"
    state=file
    owner={{ deployer_user.name }}
    group=users
    mode=600

- name: Ensure devs keys are present
  authorized_key: key="{{ lookup('file', item) }}"
    user={{ deployer_user.name }}
    state=present
  with_fileglob:
    - "{{ playbook_dir }}/../dev_keys/*"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
taperole-1.7.1 roles/deployer_user/tasks/keys.yml
taperole-1.7.0 roles/deployer_user/tasks/keys.yml