Ansible, Linux, Ubuntu, windows 10

[ansible|windows 10] On ubuntu app ansible.cfg is ignored

os: ubuntu (windows 10)
ansible: 2.6.4

When you launch ansible-playbook and you have a local ansible.cfg, ubuntu throws this error:

[WARNING] Ansible is being run in a world writable directory  (/ mnt / c / code / ansible /....), ignoring it asan ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-di
r
ERROR! Invalid or no config file was supplied

The problem is related to the permissions that are given to the files by default, since in fact the latest versions see these permissions (777) as a security problem and ignore the file.

To avoid this problem just re-set the permissions of the wsl (windows subsystem linux) by creating the file /etc/wsl.conf

[Automount]
enabled = true
mountFsTab = false
root = / mnt /
options = “metadata, umask = 22, fmask = 11”

[network]
generateHosts = true
generateResolvConf = true

source: https://github.com/ansible/ansible/issues/42388#issuecomment-403926971

Annunci
Linux, PostgreSql, Sql

[PostgreSql] Installazione e primo utilizzo

Un ottimo database gratuito e proprio Postgresql, ormai ultimo baluardo da quando le sorti di Mysql sono incerte dopo l’acquisizione di Oracle.

Per installarlo è utilizzarlo al meglio su ubuntu 9.10, vi sono due post ottimi che spiegano al meglio le procedure da eseguire.

https://help.ubuntu.com/community/PostgreSQL [Inglese]

http://ilpinguinofurioso.wordpress.com/2007/08/08/installare-postgresql-su-ubuntu-704-feisty-fawn/ [Italiano]