Skip to content

Instantly share code, notes, and snippets.

@cdahlhausen
Created April 22, 2016 16:29
Show Gist options
  • Save cdahlhausen/dd9c9ef21d5fcbed3db8617256bfa15f to your computer and use it in GitHub Desktop.
Save cdahlhausen/dd9c9ef21d5fcbed3db8617256bfa15f to your computer and use it in GitHub Desktop.
- name: add common user public keys
become: yes
authorized_key: user="{{ item.name }}"
key="{{ item.pubkeyfile }}"
state=present
with_items:
- { name: 'auser', pubkeyfile: "{{ var_adiamond_sskey }}" }
- { name: 'buser', pubkeyfile: "https://github.com/buser.keys" }
- { name: "{{system_default_user}}", pubkeyfile: "{{var_deploy_sshkey }}" }
... Gives me an unknown error:
[DEPRECATION WARNING]: Skipping task due to undefined Error, in the future this will be a fatal error.. This feature will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment