The offending line appears to be:
- name: Run queries from SQL script
^ here
- hosts: vm_databasebecome: yesvars:#usate per il lancio senza Cloudifyan_db_name: db_webserver#an_db_user: webserver#an_db_password: webservertasks:- name: PostgreSQL installation...become_user: rootpackage:name: "{{ item }}"state: presentloop:- postgresql#- postgresql-contrib#- libpq-dev- python-psycopg2- name: Check Cluster dir is empty..register: foundFilesfind:paths: /var/lib/postgres/datapatterns: '*.*'- name: Launching initdb ...when: foundFiles.matched == 0become_user: postgresbecome_flags: -ishell: initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'- name: Set postgresql.conf to allow remote connection...become_user: rootlineinfile:path: /var/lib/postgres/data/postgresql.confregexp: "^#listen_addresses = 'localhost'"line: "listen_addresses = '*' "- name: Set pg_hba.conf to allow remote connection...become_user: rootlineinfile:path: /var/lib/postgres/data/pg_hba.confregexp: 'host.*all.*all.*0.0.0.0/0.*md5' #da sistemare, non funzionafirstmatch: yesinsertafter: '^# IPv4 local connections:*'line: "host\tall\t\tall\t\t0.0.0.0/0\t\tmd5" #controllare -> bazooka- name: Service launch..become_user: rootservice:name: postgresqlstate: startedenabled: yes- name:DB creation..become_user: postgrespostgresql_db:name: "{{ an_db_name }}"encoding: UTF-8lc_collate: it_IT.UTF-8lc_ctype: it_IT.UTF-8template: template0state: present- name: User creation..become_user: postgrespostgresql_user:db: "{{ an_db_name }}"name: "{{ an_db_user }}"password: "{{ an_db_password }}"priv: ALLrole_attr_flags: LOGIN,CREATEDBstate: present###EVERYTHING FINE TILL HERE####- name: Run queries from SQL script...become_user: postgrespostgresql_query:db: "{{ an_db_name }}"path_to_script: Resource/00-create.sqlpositional_args: 1
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5d7c4e35-e113-4e0d-a929-905ea73b8d74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jonathan Cha'gara Lozada De La Matta
He / Him / His
Automation Practice
Senior Automation Consultant & Automation CoP Manager
ansible-playbook 2.7.10
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/andrea/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 3.7.3 (default, Mar 26 2019, 21:43:19) [GCC 8.2.1 20181127]
Using /etc/ansible/ansible.cfg as config file
/etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
Parsed /etc/ansible/hosts inventory source with ini plugin
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/home/andrea/Documenti/Tirocinio/Cloudify/BluePrint/Database/database_create.yml': line 76, column 9, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Run queries from SQL script
^ here
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5d7c4e35-e113-4e0d-a929-905ea73b8d74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.