Commit 7ef0e294 authored by nanahira's avatar nanahira

remove swapon

parent 0bbaac67
Pipeline #40699 failed with stage
in 4 minutes and 59 seconds
......@@ -5,13 +5,13 @@
- name: sshd config
include_tasks: sshd_config.yml
when: not testing
- name: detect swap
shell: '/sbin/swapon'
register: swap_result
changed_when: false
- name: add swap
include_tasks: 'swapon.yml'
when: 'ansible_memtotal_mb < 1024 and not swap_result.stdout'
#- name: detect swap
# shell: '/sbin/swapon'
# register: swap_result
# changed_when: false
#- name: add swap
# include_tasks: 'swapon.yml'
# when: 'ansible_memtotal_mb < 1024 and not swap_result.stdout'
- name: railgun
include_tasks: 'railgun.yml'
when: railgun
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment