[ansible-project] Ansible user home directory issue

2020-02-13 Thread Bala Mutyam
Hi all, ansible --version ansible 2.7.7 I'm not sure if it's a bug? I'm creating a system user & group without home directory and --disabled-login but in the /etc/passwd , it's showing as home directory created but it doesn't exist. Playbook: - name: Create sonarqube group group:

Re: [ansible-project] How to use group_vars in ansible templates

2020-02-12 Thread Bala Mutyam
/20 12:21 PM, Bala Mutyam wrote: > > Hi there, > > > > Could someone help me with how to template this config like below > please? > > > > cluster_formation.classic_config.nodes.1 = rabbit@rabbitmq-1 > > cluster_formati

Re: [ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Bala Mutyam
configured to refuse manual start/stop).\nSee system logs and 'systemctl status auditd.service' for details.\n"} On Monday, February 17, 2020 at 1:42:37 PM UTC, Stefan Hornburg (Racke) wrote: > > On 2/17/20 2:36 PM, Bala Mutyam wrote: > > Hi all, > > > > Anisb

[ansible-project] How to use group_vars in ansible templates

2020-02-10 Thread Bala Mutyam
Hi there, Could someone help me with how to template this config like below please? cluster_formation.classic_config.nodes.1 = rabbit@rabbitmq-1 cluster_formation.classic_config.nodes.2 = rabbit@rabbitmq-2 cluster_formation.classic_config.nodes.3 = rabbit@rabbitmq-3 I would like to change

[ansible-project] Unable to restart auditd service on centos7

2020-02-17 Thread Bala Mutyam
Hi all, Anisble Version: ansible 2.7.7 I'm configuring auditd on centos7 but the auditd service is failing to restart. Handler: - name: centos7 restart auditd become: yes command: service auditd restart Error: FAILED! => {"changed": false, "msg": "Unable to restart service auditd:

Re: [ansible-project] Ansible user home directory issue

2020-02-14 Thread Bala Mutyam
I thought because of the /home/user in the /etc/passwd. Ok,thanks for the clarification. On Thursday, February 13, 2020 at 10:36:33 AM UTC, Kai Stian Olstad wrote: > > On Thu, Feb 13, 2020 at 01:55:20AM -0800, Bala Mutyam wrote: > > Hi all, > > > > ansible --ve

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Bala Mutyam
> "psql" or from Ansible itself?) > > Can you run the playbook with "-vvv" and paste in the errors the "Reset > Admin pw" step produces. > > On Tuesday, March 10, 2020 at 11:12:17 AM UTC-5, Bala Mutyam wrote: >> >> Hi, >> >> T

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Bala Mutyam
that a salt is > used. > Your users will be thankful for it later. > > > Dick > > > On Thu, 12 Mar 2020 at 12:13, Bala Mutyam > wrote: > > > > Hi, > > > > I manged to run the task successfully but i'm not able to login with the > password to

[ansible-project] Ansible password_hash issue

2020-03-10 Thread Bala Mutyam
Hi Everyone, I'm trying to create a task for below command but it's not working, can you help me how to make it work please? Command: update users set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi', salt=null, hash_method='BCRYPT' where login = 'admin' -

[ansible-project] Re: Ansible password_hash issue

2020-03-10 Thread Bala Mutyam
salt=None) }}' where login = 'admin'" sonarqube tags: query On Tuesday, March 10, 2020 at 12:20:59 PM UTC, Bala Mutyam wrote: > > Hi Everyone, > > I'm trying to create a task for below command but it's not working, can > you help me how to make it work please? > >

Re: [ansible-project] Ansible password_hash issue

2020-03-10 Thread Bala Mutyam
rdcoding the hash in your task to see if > that works at all. > > > > > On Tue, 10 Mar 2020 at 13:21, Bala Mutyam > wrote: > > > > Hi Everyone, > > > > I'm trying to create a task for below command but it's not working, can > you help me

Re: [ansible-project] Ansible password_hash issue

2020-03-13 Thread Bala Mutyam
ot handle the newer 2b variant of > bcrypt - which ansible creates. > But this sounds unlikely. > > Can you try to create a password with ansible using a salt (so leaving > the "salt=None" out) ? > > Dick > > On Thu, 12 Mar 2020 at 15:52, Bala Mutyam > wro

Re: [ansible-project] Ansible password_hash issue

2020-03-13 Thread Bala Mutyam
OS - Debian 10 PostgreSQL - 11.7 On Friday, March 13, 2020 at 12:01:47 PM UTC, Stefan Hornburg (Racke) wrote: > > On 3/13/20 12:38 PM, Bala Mutyam wrote: > > I've deleted the salt option altogether but tit didn't work. > > > > Yeah, it's the app which doesn't like 2b v

Re: [ansible-project] Ansible password_hash issue

2020-03-13 Thread Bala Mutyam
.py > > > If that does work for you, then you might want to submit a feature > request to support this option. > > > Dick > > On Fri, 13 Mar 2020 at 12:38, Bala Mutyam > wrote: > > > > I've deleted the salt option altogether but tit didn't work. > >

Re: [ansible-project] Ansible password_hash issue

2020-03-13 Thread Bala Mutyam
t; default_ident = IDENT_2B > > > This should be in handlers/bcrypt.py > > > If that does work for you, then you might want to submit a feature > request to support this option. > > > Dick > > On Fri, 13 Mar 2020 at 12:38, Bala Mutyam > wrote: &g

Re: [ansible-project] Ansible password_hash issue

2020-03-13 Thread Bala Mutyam
Requested the feature - https://github.com/ansible/ansible/issues/68214 On Friday, March 13, 2020 at 3:31:12 PM UTC, Bala Mutyam wrote: > > I have changed the ident to 2A and it's working fine. > > command: psql -c "update users set crypted_password = '{{ admin_password | > p

[ansible-project] Ansible ssh error

2020-03-30 Thread Bala Mutyam
Hi Everyone, I trying to run this from Ansible on Ubuntu server and client is Redhat 7 but giving me attached error, please help. root@kotireddy4781c:/etc/ansible# ansible --version ansible 2.5.1 config file = /etc/ansible/ansible.cfg configured module search path =

Re: [ansible-project] Ansible ssh error

2020-03-30 Thread Bala Mutyam
cp > > > On Mon, 30 Mar 2020 at 12:19, Bala Mutyam > wrote: > > > > Hi Everyone, > > > > I trying to run this from Ansible on Ubuntu server and client is Redhat > 7 but giving me attached error, please help. > > > > root@kotireddy4781c:/etc