Move task to pre_tasks

This commit is contained in:
Sonny Bakker 2021-01-29 21:29:56 +01:00
parent 564069b828
commit c2fb9bb692
2 changed files with 8 additions and 9 deletions

View file

@ -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:

View file

@ -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'