Created
July 1, 2012 02:43
-
-
Save mherkender/3026572 to your computer and use it in GitHub Desktop.
Why ansible sucks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max@darmani% ansible-playbook -k -i ansible.hosts nabooru.ansible.yml | |
SSH password: | |
PLAY [nabooru] **************************** | |
SETUP PHASE **************************** | |
ok: [192.168.1.133] | |
TASK: [install nginx] ********* | |
ok: [192.168.1.133] => apt pkg=nginx state=installed | |
TASK: [configure nginx] ********* | |
ok: [192.168.1.133] => template src=/var/tmp/ansible.WFoHkW/source dest=/etc/nginx/nginx.conf | |
TASK: [ensure nginx is running] ********* | |
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1} | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/{"failed": 1, "rc": 1} | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/service name=nginx state=running | |
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1} | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/{"failed": 1, "rc": 1} | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/service name=nginx state=running | |
NOTIFIED: [restart nginx] ********** | |
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1} | |
Stopping nginx: nginx. | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/{"failed": 1, "rc": 1} | |
Stopping nginx: nginx. | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/service name=nginx state=restarted | |
fatal: [192.168.1.133] => failed to parse: {"failed": 1, "rc": 1} | |
Stopping nginx: nginx. | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/{"failed": 1, "rc": 1} | |
Stopping nginx: nginx. | |
Starting nginx: [emerg]: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 | |
configuration file /etc/nginx/nginx.conf test failed | |
/service name=nginx state=restarted | |
PLAY RECAP ********************** | |
192.168.1.133 : ok= 3 changed= 2 unreachable= 2 failed= 0 | |
totally, It required python 2 to work on server. Ubuntu 16 and above doesn't ship python 2. So you need to ssh into the server and apt update and install python 2.
Then the pip module will only install python 2 package. but your whole app is on python 3. It a complete mess.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this seems to be more of a commentary on how the service module had a bug in it that needed to be reported :)