mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update main.yml
This commit is contained in:
parent
74c8f80862
commit
25348e7dc7
1 changed files with 0 additions and 20 deletions
|
@ -11,27 +11,7 @@
|
|||
- debug:
|
||||
msg: "Cloud platform is {{ cloud.stdout}}"
|
||||
|
||||
- block:
|
||||
- name: Close swap Space
|
||||
command: swapoff -a
|
||||
|
||||
- name: Create swap Space
|
||||
command: dd if=/dev/zero of=/mnt/swap bs=256M count=8
|
||||
|
||||
- name: Make swap
|
||||
command: mkswap /mnt/swap
|
||||
|
||||
- name: Action swap
|
||||
command: swapon /mnt/swap
|
||||
|
||||
- name: Add to fstab
|
||||
lineinfile:
|
||||
dest: /etc/fstab
|
||||
regexp: '/mnt/swap'
|
||||
line: "/mnt/swap swap swap defaults 0 0"
|
||||
state: present
|
||||
|
||||
when: (ansible_swaptotal_mb == 0) and (cloud.stdout != 'azure')
|
||||
|
||||
- block:
|
||||
- name: Change ubuntu service name
|
||||
|
|
Loading…
Reference in a new issue