Move koji hub sshfs setup to koji-hub.yml
This commit is contained in:
parent
a73e34b120
commit
39cdd1af91
2 changed files with 24 additions and 24 deletions
|
@ -200,27 +200,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
- name: configure sshfs target on koji01
|
|
||||||
hosts: koji01.phx2.fedoraproject.org:koji01.stg.phx2.fedoraproject.org
|
|
||||||
tags:
|
|
||||||
- sshfs
|
|
||||||
user: root
|
|
||||||
gather_facts: True
|
|
||||||
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: Put public sshfs key in place
|
|
||||||
authorized_key: user="root"
|
|
||||||
key="{{ lookup('file', '{{ private }}/files/releng/sshkeys/primary-s390x-sshfs' + '-staging.pub' if env == 'staging' else '.pub') }}"
|
|
||||||
state=present
|
|
||||||
key_options='command="internal-sftp",from="{{ '10.16.0.25' if env == 'staging' else '10.16.0.11' }}",restrict'
|
|
||||||
tags:
|
|
||||||
- sshfs
|
|
||||||
|
|
||||||
handlers:
|
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
|
||||||
|
|
|
@ -93,3 +93,27 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: configure sshfs target on koji01
|
||||||
|
hosts: koji01.phx2.fedoraproject.org:koji01.stg.phx2.fedoraproject.org
|
||||||
|
tags:
|
||||||
|
- sshfs
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Put public sshfs key in place
|
||||||
|
authorized_key: user="root"
|
||||||
|
key="{{ lookup('file', '{{ private }}/files/releng/sshkeys/primary-s390x-sshfs' + '-staging.pub' if env == 'staging' else '.pub') }}"
|
||||||
|
state=present
|
||||||
|
key_options='command="internal-sftp",from="{{ '10.16.0.25' if env == 'staging' else '10.16.0.11' }}",restrict'
|
||||||
|
tags:
|
||||||
|
- sshfs
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue