[ansible-devel] update an existing table within a file with new data

2020-08-20 Thread jonin
Hi, I am trying to create a sub-task to update an existing table in a file: /var/lib/pgsql/10/data/pg_hba.conf # TYPE DATABASEUSERADDRESS METHOD # "local" is for Unix domain socket connections only local all all

[ansible-devel] How to run entire playbook sequential against inventory

2020-08-22 Thread jonin
Hi, I have a playbook which is running against this type of structured inventory file # Ansible Inventory [webservers] host1 host2 [nodes] host3 host4 [all:vars] # The playbook needs to effectively run three plays in this order which it is doing: 1. Do stuff to We

[ansible-devel] Task to input fields into a interactive database script.

2020-08-24 Thread jonin
Hi, I am looking to automate this task within ansible and have no idea really how to do this. I run the set up script manually on the host(s) like this: I call the "setup" script below with npm run options: npm run setup The script then prompts for my user input to provide the following deta

Re: [ansible-devel] Task to input fields into a interactive database script.

2020-08-26 Thread jonin
5432 ]' tags: - setup - install - test Error: "Postgresql Superuser (for database creation) [default: postgres]:"]} I am struggling to find any other working solutions for ansible to manage an interactive script such as this so any help much apprec

[ansible-devel] Ansible shell/command task can start node script

2020-09-02 Thread jonin
Hi, Any ideas where I am going wrong here. I have a web server tasks which uses shell to start apache no problem: - hosts: webservers remote_user: root become_user: test become: True tasks: - name: Task18 - Start webservers back up shell: ./apache/bin/apachectl star

[ansible-devel] Ansible task not starting up custom node.js script with either shell or command module

2020-09-02 Thread jonin
Hi, Any ideas where I am going wrong here? I have a web server task which uses shell to start apache no problem: - hosts: webservers remote_user: root become_user: test become: True tasks: - name: Task18 - Start webservers back up shell: ./apache/bin/apachectl start

[ansible-devel] ansible task to cat a file with sql commands and pipe the commands into database using psql with synchronise module (remotely)

2019-11-26 Thread jonin
Hi, I have created the following task to be run on a remote host: - hosts: nodes remote_user: root tasks: - name: Step Seven - remove all current postcode data and then re-populate the database with most recent data become_user: postgres become: yes command: "cat /var/l

Re: [ansible-devel] ansible task to cat a file with sql commands and pipe the commands into database using psql with synchronise module (remotely)

2019-11-27 Thread jonin
7;m wrong about why > the MemoryError is happening, there might be another problem in > addition but I am hopeful that it's all tied together). > > -Toshio > > On Tue, Nov 26, 2019 at 9:12 AM jonin > > wrote: > > > > Hi, > > > > I have cre