setup a var for files so I don't have to guess
This commit is contained in:
parent
657e37f4ee
commit
461ed5ba69
1 changed files with 4 additions and 2 deletions
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
- hosts: builder_temp_group
|
- hosts: builder_temp_group
|
||||||
user: root
|
user: root
|
||||||
|
vars:
|
||||||
|
- files: /srv/copr-work/provision/files
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: edit hostname to be instance name
|
- name: edit hostname to be instance name
|
||||||
|
@ -33,7 +35,7 @@
|
||||||
action: mount name=/mnt/mock src=/dev/vda2 fstype=ext3 passno=1 dump=1 state=mounted
|
action: mount name=/mnt/mock src=/dev/vda2 fstype=ext3 passno=1 dump=1 state=mounted
|
||||||
|
|
||||||
- name: builder.repo
|
- name: builder.repo
|
||||||
action: copy src=files/builder.repo dest=/etc/yum.repos.d/builder.repo
|
action: copy src=$files/builder.repo dest=/etc/yum.repos.d/builder.repo
|
||||||
|
|
||||||
- name: make some dirs for mock
|
- name: make some dirs for mock
|
||||||
action: file state=directory path=$item
|
action: file state=directory path=$item
|
||||||
|
@ -72,7 +74,7 @@
|
||||||
action: file state=directory path=/home/mockbuilder/.ssh mode=0700 owner=mockbuilder group=mockbuilder
|
action: file state=directory path=/home/mockbuilder/.ssh mode=0700 owner=mockbuilder group=mockbuilder
|
||||||
|
|
||||||
- name: mockbuilder authorized_keys
|
- name: mockbuilder authorized_keys
|
||||||
action: copy src=files/buildsys.pub dest=/home/mockbuilder/.ssh/authorized_keys owner=mockbuilder group=mockbuilder mode=0644
|
action: authorized_key user=mockbuilder key='$FILE(${files}/buildsys.pub)'
|
||||||
|
|
||||||
- name: downgrade rpm to the bonkers one
|
- name: downgrade rpm to the bonkers one
|
||||||
action: command /usr/bin/yum -y downgrade rpm\*
|
action: command /usr/bin/yum -y downgrade rpm\*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue