2016-06-04 17:48:06 +03:00
---
- hosts : all
2016-06-22 19:00:45 +03:00
gather_facts : no
2016-06-04 17:48:06 +03:00
become : yes
tasks :
2016-11-14 20:07:43 +03:00
- name : generate config
local_action : shell vagrant ssh-config > ssh-config
become : no
2016-10-31 23:26:56 +03:00
2016-11-14 20:07:43 +03:00
# The test suite requires direct ssh to root.
2016-10-31 23:26:56 +03:00
- file : state=directory mode=0600 path=/root/.ssh
2016-11-14 20:07:43 +03:00
- copy : remote_src=True src=/home/vagrant/.ssh/authorized_keys dest=/root/.ssh/authorized_keys
2016-10-31 23:26:56 +03:00
# make sure root account is unlocked
- name : unlock root account
2016-11-14 20:07:43 +03:00
shell :
cmd : 'passwd -u root && touch /root/.unlocked'
creates : /root/.unlocked
2016-06-04 17:48:06 +03:00
2016-11-14 20:07:43 +03:00
- copy :
dest : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
content : |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version : GnuPG v1.4.11 (GNU/Linux)
2016-06-22 19:00:45 +03:00
2016-11-14 20:07:43 +03:00
mQINBFKuaIQBEAC1UphXwMqCAarPUH/ZsOFslabeTVO2pDk5YnO96f+rgZB7xArB
OSeQk7B90iqSJ85/c72OAn4OXYvT63gfCeXpJs5M7emXkPsNQWWSju99lW+AqSNm
jYWhmRlLRGl0OO7gIwj776dIXvcMNFlzSPj00N2xAqjMbjlnV2n2abAE5gq6VpqP
vFXVyfrVa/ualogDVmf6h2t4Rdpifq8qTHsHFU3xpCz+T6/dGWKGQ42ZQfTaLnDM
jToAsmY0AyevkIbX6iZVtzGvanYpPcWW4X0RDPcpqfFNZk643xI4lsZ+Y2Er9Yu5
S/8x0ly+tmmIokaE0wwbdUu740YTZjCesroYWiRg5zuQ2xfKxJoV5E+Eh+tYwGDJ
n6HfWhRgnudRRwvuJ45ztYVtKulKw8QQpd2STWrcQQDJaRWmnMooX/PATTjCBExB
9dkz38Druvk7IkHMtsIqlkAOQMdsX1d3Tov6BE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LIC KEY BLOCK-----
- name : Add repository
yum_repository :
name : epel
description : EPEL YUM repo
mirrorlist : 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch'
gpgcheck : yes
gpgkey : file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
- command : rpm -q fuse-sshfs
register : rpmq_fuse_sshfs
changed_when : False
failed_when : False
- command : rpm-ostree install fuse-sshfs
when : rpmq_fuse_sshfs.rc != 0