[ansible-project] Re: Cannot use the pexpect module with Keybase pgp and multiple ':' characters
I and a few others I know, have tried the pexpect module with similar results I ended up using the shell command unfortunately. On Wednesday, 28 August 2019 12:54:59 UTC+1, Andrew Graham wrote: > > no luck with your suggestion @Kai - its still timing out here with the > suggested changes. > > currently the expect module isn't working here. try to enter this in a > shell to validate a password first. "keybase pgp encrypt -m 'secret' | > keybase pgp decrypt" > TASK [deadline-spot : Case insensitive password string match] > ** > Wednesday 28 August 2019 21:51:40 +1000 (0:00:00.042) 0:00:00.726 > ** > fatal: [ansible_control]: FAILED! => { > "changed": true, > "cmd": "/bin/bash -c \"echo asdfljashflakewrva23lk432h42l3nr2tlkn32rt= > | base64 --decode | keybase pgp decrypt\"", > "delta": "0:00:35.439475", > "end": "2019-08-28 21:52:16.698211", > "rc": null, > "start": "2019-08-28 21:51:41.258736" > } > > STDOUT: > > ▶ INFO Starting keybase.service. > Please enter your Keybase passphrase to unlock the secret key for: > PGP key andre > w_graham seg4esehseh > > Reason: PGP Decryption: > > > MSG: > > command exceeded timeout > > > > On Wednesday, 28 August 2019 12:25:06 UTC+10, Andrew Graham wrote: >> >> I'm wondering why the pexpect module is failing in this >> circumstance, perhaps my regex is not right, but the double ':' may be >> messing with things as well and I'm not sure how to approach handling it. >> >> >> if I run- >> >> >> keybase pgp encrypt -m 'secret' | keybase pgp decrypt >> >> >> Then this prompt may occur, which I cant seem to catch. >> >> >> Please enter your Keybase passphrase to unlock the secret key for: >> PGP key andrew_graham KJ2G34K4J3H1K234J >> >> Reason: PGP Decryption: >> >> >> >> here is an example of my attempts with expect: >> >> >> - name: Case insensitive password string match >> expect: >> chdir: /vagrant >> command: '/bin/bash -c "echo {{ secret }} | base64 --decode | keybase >> pgp decrypt"' >> responses: >> .*Please enter your Keybase passphrase to unlock the secret key for \[.*\]: >> "{{ keybase_secret }}" >> .*Please enter your Keybase passphrase to unlock the secret key for.*: "{{ >> keybase_secret }}" >> ^Reason\[:.*\] PGP Decryption\[:.*\]: "{{ keybase_secret }}" >> > -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/77722f2c-35b0-4c31-be2a-f7b5a26c5ad5%40googlegroups.com.
[ansible-project] Re: Ansible & Jenkins integration issue
Are you using the ansible plugin within Jenkins? Or running it as a cli within jenkins? I've had no issues (yet) using the ansible plugin. On Tuesday, 30 January 2018 09:12:33 UTC, GornerM wrote: > > Ansible playbooks passes without any issues, when I run it directly from > cli (also inside of Jenkins workspace) > But I receives the following error > "FAILED! => {"failed": true, "msg": "ERROR! the handler > 'juniper_junos_facts' was not found" > when ansible runs by execution of Jenkins job. > > juniper_junos_facts is the task of Juniper.junos role. > > I have specifide library path in ansible configuration and exported > ANSIBLE_LIBRARY variable. > > Do you have any ideas, why ansible can not find tasks iside of Jenkins? > -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ddb04bae-dac9-4ff8-81b1-18dcd33a13fa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Ansible & Jenkins integration issue
>From the cli version, try running two commands pwd and ls -l So you can see if it's putting you in the directory you think you are -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/10fc9b99-be9b-4e02-9a51-b50456153190%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: Item name in task name.
I don't think you can do that, as the item isn't defined when it prints the name section. I also seem to remember that certain modules,like yum will process the list in one go. Rather than doing two yum installs. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0c9e3e1a-9c52-44f3-af1a-94888702e902%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: Need help about Ansible block syntax
Notify should go after each of the tasks. You could set a fact in the block then check that and notify afterwards though -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/61ec61f9-173e-4f69-b6f6-54ea8e0a454e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] How to store ansible vault password in jenkins
I assume you add it as a credential. The latest Jenkins ansible plugin supports it -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8a28f05f-8ab0-4e74-8973-075d1f80d486%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Copy module
I'm using ansible to build a package in Jenkins and the make an rpm. The copy function takes 20+ minutes to copy a few files. Using the command function takes under a second. The synchronize function is generally unusable (better off using rsync from command) I was wondering what other people's experiences are with copy and synchronize. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b3a0e67f-87dc-4b3e-98e6-04241cca4853%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Copy module
After further investigation it appears there are a lot of serious short comings using ansible directly to build an rpm. It looks like it's not a fault with ansible per say, just how I'm trying to (ab)use it. The thought occurs about writing an ansible module to make rpms. Would there be wider interest in this? -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ff31283d-33b2-47c9-9699-cf6a6fa52232%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: Copy module
It's not a network issue. Local and remote are localhost. The speed issues seem to be down to abuse of ansible. Just to process the files dictionary list into a sensible format took over three hours (I gave up) and used 12Gb of ram. Using a shell script takes less than a second. Ansible is doing a lot of checks, that in this instance are pointless. There is a lot of manipulation of data as well, that would be far easier in python too. So a module to make an rpm I think is the way to go. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c62ccbab-be8a-46d9-a103-bd7f625e04a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Ansible Meta resetconnection
As part of an ansible run I need to update a profile and reconnect. I'm using pipelines, so I was hoping the ansible meta reset_connection would work. However it tries to delete a random control file (that doesn't exist). There has been a bug raised for this but it's not been looked at, so I guess it's not going to get fixed. I've worked around it using shell and su - commands. Along with bugs with become user it's been a fun day. Was wondering how many people are finding a lot more bugs with ansible, or am i just especially gifted? -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/49b285fc-23a6-4683-9580-88a7d317935a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Can't Access to Jenkins from anywhere
By locally you mean??? Using localhost? -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/562720bf-4813-4352-a6a1-6c7d8b174459%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] lineinfile module gives error: "chown failed: [Errno 1] Operation not permitted:
You're trying to change the ownership of a file to root, you need to be root to do that Cheers Malcolm -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9c70db74-6d86-4d64-a485-eaa7fd2b15cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Jenkins - Ansible integration
It works fine. "Unable to run it" isn't really enough information;) -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b8d1d380-ff33-4969-b7d4-0004f01f1081%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Re: Jenkins - Ansible integration
If you are using Jenkins & ansible it's better to store the playbooks/roles/inventories in git and use Jenkins to check it out. Makes developing easier imho -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/eb9f2469-4b98-4c2d-8422-d9fa154aa559%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] double with_items and loops
If you are editing these files the inifile module is much better btw. Take a look -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0187bc89-8309-49da-a8da-da642aa3647b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Ansible zabbix module issues
The only thing I can think is on the Zabbix server the version of python sensible is using isn't 2.7 but some other one? Is there another python installed on the zabbix server?? That's a wild guess btw -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1b14a94c-83f5-49ba-b480-8097c99abb37%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] double with_items and loops
Another one to look at is the newly added xml module, if you have to suffer the pain of xml config files. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/80272559-fb70-4b41-ab55-21d0f78828f2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.