Wiredcraft / devops-ansible

Ansible folder structure, including playbooks / plugins / etc.
0 stars 1 forks source link

Bug: Ensure locales are being used fails #39

Closed JuhaS closed 10 years ago

JuhaS commented 10 years ago

Trying to create a server fails with following log:

2014-02-03 09:39:25 - Failure on host testserver3: Traceback (most recent call last):
  File "/home/devops/.ansible/tmp/ansible-1391420349.54-164287893438698/lineinfile", line 1255, in <module>
    main()
  File "/home/devops/.ansible/tmp/ansible-1391420349.54-164287893438698/lineinfile", line 319, in main
    ins_aft, ins_bef, create, backup, backrefs)
  File "/home/devops/.ansible/tmp/ansible-1391420349.54-164287893438698/lineinfile", line 225, in present
    lines.append(line + os.linesep)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
2014-02-03 09:39:09 - Internal task starting: Ensure locales are being used

It seems this commit https://github.com/devo-ps/devops-ansible/commit/92022c11007bb7ee1d2f93bf65b5a5bc81fecf89 causes the problem.

zbal commented 10 years ago

Should be good now - fixed in latest commit.