zach-adams / hgv-deploy-full

This Ansible Playbook is designed to setup a Mercury-Like environment on a Production server without the configuration hassle.
102 stars 46 forks source link

Swap Error #40

Open Lepelone opened 8 years ago

Lepelone commented 8 years ago

Hi,

This happens when i try to install, can you help me please? Best wishes Victor

root@server:~/hgv-deploy-full# sudo ansible-playbook -i hosts playbook.yml -c local --limit @playbook.retry [DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

PLAY [all] *****

TASK [setup] *** ok: [elobservadormexico.com]

TASK [common : Install necessary packages for proper system state] ***** ok: [elobservadormexico.com] => (item=[u'sysv-rc-conf', u'python-apt', u'python-pycurl', u'python-mysqldb', u'git', u'curl', u'unzip', u'php5-mysql', u'traceroute', u'ack-grep', u'subversion', u'autojump', u'siege'])

TASK [common : Get Composer] *** ok: [elobservadormexico.com]

TASK [common : Install PsySH] ** ok: [elobservadormexico.com]

TASK [common : Install Boris] ** ok: [elobservadormexico.com]

TASK [common : Fix the stdin bug, step 1] ** ok: [elobservadormexico.com]

TASK [common : Fix the stdin bug, step 2] ** ok: [elobservadormexico.com]

TASK [common : include] **** included: /root/hgv-deploy-full/roles/common/tasks/swap.yml for elobservadormexico.com

TASK [common : Create swap file] *** ok: [elobservadormexico.com]

TASK [common : Setup swap area] **** changed: [elobservadormexico.com]

TASK [common : Change swap file permissions] *** ok: [elobservadormexico.com]

TASK [common : Write swap entry in fstab] ** ok: [elobservadormexico.com]

TASK [common : Swap on] **** fatal: [elobservadormexico.com]: FAILED! => {"changed": true, "cmd": ["swapon", "/swapfile"], "delta": "0:00:00.005964", "end": "2016-04-25 18:16:45.094472", "failed": true, "rc": 255, "start": "2016-04-25 18:16:45.088508", "stderr": "swapon: /swapfile: swapon failed: Operation not permitted", "stdout": "", "stdout_lines": [], "warnings": []} to retry, use: --limit @playbook.retry

PLAY RECAP ***** elobservadormexico.com : ok=12 changed=1 unreachable=0 failed=1

Lepelone commented 8 years ago

im hosted in vps dime, 12gb memory, 60 gb disk space, hope this info helps, ubuntu 14.04 64 bits