mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
copr: create swap when facts has been gathered
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
02dd348fe1
commit
e50dcc563d
@@ -15,10 +15,6 @@
|
||||
|
||||
- import_tasks: "{{ tasks_path }}/aws_cloud.yml"
|
||||
when: datacenter == 'aws'
|
||||
- import_tasks: "{{ tasks_path }}/swap.yml"
|
||||
when:
|
||||
- datacenter == 'aws'
|
||||
- swap_file_size_mb is defined
|
||||
|
||||
- name: cloud basic setup
|
||||
hosts: copr_dist_git_dev:copr_dist_git_stg:copr_dist_git:copr_dist_git_dev_aws:copr_dist_git_aws
|
||||
@@ -32,6 +28,10 @@
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/swap.yml"
|
||||
when:
|
||||
- datacenter == 'aws'
|
||||
- swap_file_size_mb is defined
|
||||
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
||||
- name: set hostname (required by some services, at least postfix need it)
|
||||
hostname: name="{{copr_hostbase}}.fedorainfracloud.org"
|
||||
|
||||
Reference in New Issue
Block a user