Skip to content

Instantly share code, notes, and snippets.

@juffaz
Created December 4, 2018 08:32
Show Gist options
  • Save juffaz/9c2f88db54e06077d0e736ff9c36983d to your computer and use it in GitHub Desktop.
Save juffaz/9c2f88db54e06077d0e736ff9c36983d to your computer and use it in GitHub Desktop.
[root@cobbler01 ansible-backprod]# cat centos7deploy-key.yml
---
- hosts: all
gather_facts: no
remote_user: root
# sudo: yes
tasks:
- name: Set authorized key without validating the TLS/SSL certificates
authorized_key: user=devops
key=https://github.com/user.keys
validate_certs=False
- name: Set authorized key without validating the TLS/SSL certificates
authorized_key: user=root
key=https://github.com/user.keys
validate_certs=False
[root@cobbler01 ansible-backprod]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment