Move task to pre_tasks
This commit is contained in:
parent
564069b828
commit
c2fb9bb692
2 changed files with 8 additions and 9 deletions
|
|
@ -9,6 +9,14 @@
|
||||||
- '{{ ansible_os_family|lower }}.yml'
|
- '{{ ansible_os_family|lower }}.yml'
|
||||||
paths:
|
paths:
|
||||||
- 'vars/'
|
- 'vars/'
|
||||||
|
- name: add gitlab to known hosts
|
||||||
|
include_role:
|
||||||
|
name: common
|
||||||
|
tasks_from: 'known_hosts.yml'
|
||||||
|
vars:
|
||||||
|
user: '{{ ansible_user_id }}'
|
||||||
|
items:
|
||||||
|
- { domain: '{{ gitlab_domain }}', key: '{{ gitlab_host_key }}' }
|
||||||
- name: install packages
|
- name: install packages
|
||||||
become: true
|
become: true
|
||||||
package:
|
package:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,3 @@
|
||||||
- name: add gitlab to known hosts
|
|
||||||
include_role:
|
|
||||||
name: common
|
|
||||||
tasks_from: 'known_hosts.yml'
|
|
||||||
vars:
|
|
||||||
user: '{{ ansible_user_id }}'
|
|
||||||
items:
|
|
||||||
- { domain: '{{ gitlab_domain }}', key: '{{ gitlab_host_key }}' }
|
|
||||||
|
|
||||||
- name: create development dir
|
- name: create development dir
|
||||||
file:
|
file:
|
||||||
path: '{{ ansible_env.HOME }}/development'
|
path: '{{ ansible_env.HOME }}/development'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue