{"action":"created","issue":{"url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/1","repository_url":"https://api.github.com/repos/ediazcomellas/ansible101","labels_url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/1/comments","events_url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/1/events","html_url":"https://github.com/ediazcomellas/ansible101/issues/1","id":364033860,"node_id":"MDU6SXNzdWUzNjQwMzM4NjA=","number":1,"title":"Diferentes errores","user":{"login":"varjla","id":6797090,"node_id":"MDQ6VXNlcjY3OTcwOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6797090?v=4","gravatar_id":"","url":"https://api.github.com/users/varjla","html_url":"https://github.com/varjla","followers_url":"https://api.github.com/users/varjla/followers","following_url":"https://api.github.com/users/varjla/following{/other_user}","gists_url":"https://api.github.com/users/varjla/gists{/gist_id}","starred_url":"https://api.github.com/users/varjla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varjla/subscriptions","organizations_url":"https://api.github.com/users/varjla/orgs","repos_url":"https://api.github.com/users/varjla/repos","events_url":"https://api.github.com/users/varjla/events{/privacy}","received_events_url":"https://api.github.com/users/varjla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-26T13:35:52Z","updated_at":"2018-09-26T14:04:57Z","closed_at":null,"author_association":"NONE","body":"Tras ejecutar el playbook en TARGET2, me he encontrado varios problemas:\r\n\r\nInicialmente he modificado index.html.j2 porque la variable \"**ansible_hostname**\" no existe.\r\nHe modificado el inventario, porque está vacío.\r\nLa ruta host_vars no existe. He tenido que crearla, y me dio un error al ejecutar, ya que me olvidé de la ruta host-vars/target2.yml.\r\n\r\nEn la segunda ejecución, me da otro error:\r\n\r\nTASK [configurar la aplicacion] *************************************************************************************************************************************************************************************************************\r\nok: [TARGET1] => (item={u'busca': u'.*username.*', u'cambiapor': u'$username = \"psa_db\";'})\r\nfailed: [TARGET2] (item={u'busca': u'.*username.*', u'cambiapor': u'$username = \"psa_db\";'}) => {\"changed\": false, \"item\": {\"busca\": \".*username.*\", \"cambiapor\": \"$username = \\\"psa_db\\\";\"}, \"msg\": \"Destination /var/www/html/config.php does not exist !\", \"rc\": 257}\r\nok: [TARGET1] => (item={u'busca': u'.*password.*', u'cambiapor': u'$password = \"psa123\";'})\r\nfailed: [TARGET2] (item={u'busca': u'.*password.*', u'cambiapor': u'$password = \"psa123\";'}) => {\"changed\": false, \"item\": {\"busca\": \".*password.*\", \"cambiapor\": \"$password = \\\"psa123\\\";\"}, \"msg\": \"Destination /var/www/html/config.php does not exist !\", \"rc\": 257}\r\nok: [TARGET1] => (item={u'busca': u'.*dbname.*', u'cambiapor': u'$dbname = \"miapp_db\";'})\r\nfailed: [TARGET2] (item={u'busca': u'.*dbname.*', u'cambiapor': u'$dbname = \"miapp_db\";'}) => {\"changed\": false, \"item\": {\"busca\": \".*dbname.*\", \"cambiapor\": \"$dbname = \\\"miapp_db\\\";\"}, \"msg\": \"Destination /var/www/html/config.php does not exist !\", \"rc\": 257}\r\n"},"comment":{"url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/comments/424727942","html_url":"https://github.com/ediazcomellas/ansible101/issues/1#issuecomment-424727942","issue_url":"https://api.github.com/repos/ediazcomellas/ansible101/issues/1","id":424727942,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDcyNzk0Mg==","user":{"login":"varjla","id":6797090,"node_id":"MDQ6VXNlcjY3OTcwOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6797090?v=4","gravatar_id":"","url":"https://api.github.com/users/varjla","html_url":"https://github.com/varjla","followers_url":"https://api.github.com/users/varjla/followers","following_url":"https://api.github.com/users/varjla/following{/other_user}","gists_url":"https://api.github.com/users/varjla/gists{/gist_id}","starred_url":"https://api.github.com/users/varjla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varjla/subscriptions","organizations_url":"https://api.github.com/users/varjla/orgs","repos_url":"https://api.github.com/users/varjla/repos","events_url":"https://api.github.com/users/varjla/events{/privacy}","received_events_url":"https://api.github.com/users/varjla/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T14:04:57Z","updated_at":"2018-09-26T14:04:57Z","author_association":"NONE","body":"Tras analizar un poco más (con la opción -vvvv) he visto que por algún motivo inicialmente descargó el archivo de la ruta, pero no envió los archivos correctamente al servidor TARGET2... tras eliminar el .tar y relanzar, parece corregido."}}
{"actor":{"display_login":"varjla"}}