[ansible-project] MIT kerberos management module

2019-02-06 Thread Fraser Campbell
Is anyone aware of a module for ongoing management of MIT kerberos realms? We would like basic operations such as generating keytabs and creating principals. So far I'm only finding modules for setting up the basic MIT KDC, nothing for ongoing management ... Thanks -- You received this

Re: [ansible-project] Ansible with k8s-module example

2019-02-06 Thread i Kylix
Thanks Will. Appreciate your help on this. Thanks. Regards, kylix3511 Email : kylix3...@gmail.com Sent from  iPhone > On Feb 6, 2019, at 4:05 PM, will wrote: > > Yes, I've used K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT > > K8S_AUTH_KUBECONFIG=~/.kube/another_kube_config

Re: [ansible-project] Ansible with k8s-module example

2019-02-06 Thread will
Yes, I've used K8S_AUTH_KUBECONFIG and K8S_AUTH_CONTEXT K8S_AUTH_KUBECONFIG=~/.kube/another_kube_config ansible-playbook kubernetes.yml K8S_AUTH_CONTEXT=minikube ansible-playbook do_something_with_minikube.yml There was an issue with early 2.7 Ansible that you needed to set both variables but

[ansible-project] Ansible with k8s-module example

2019-02-06 Thread Kylix3511
Hi All, Ansible k8s module ( https://docs.ansible.com/ansible/latest/modules/k8s_module.html#k8s-module ) have many environments like : api_key K8S_AUTH_API_KEY environment variable. cert_file --- K8S_AUTH_CERT_FILE environment variable. context --- K8S_AUTH_CONTEXT environment

Re: [ansible-project] Ansible but with Python instead of YAML

2019-02-06 Thread Kai Stian Olstad
On 01.02.2019 16:48, Thomas Güttler wrote: Am Freitag, 1. Februar 2019 15:20:14 UTC+1 schrieb Josh Smift: YAML is great; I was confused at first because I thought it was a "markup language" like HTML, but it's just a way to represent data structures. It's not a programming language, though.

Re: [ansible-project] authorized_keys module

2019-02-06 Thread Dick Visser
Could it be that the key value has to start with the type of the key? I.e. "ssh-rsa" ? On Wed, 6 Feb 2019 at 20:11, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: > > Hi all, > > I'm trying to add pubkeys to several users and I'm getting an error message. > Here's the playbook: > >

Re: [ansible-project] authorized_keys module

2019-02-06 Thread Kai Stian Olstad
On 06.02.2019 20:11, 'Chris Bidwell - NOAA Federal' via Ansible Project wrote: Hi all, I'm trying to add pubkeys to several users and I'm getting an error message. Here's the playbook: --- - name: Add users and pubkeys hosts: server1 become: yes vars_files: - passwd.yml -

[ansible-project] authorized_keys module

2019-02-06 Thread 'Chris Bidwell - NOAA Federal' via Ansible Project
Hi all, I'm trying to add pubkeys to several users and I'm getting an error message. Here's the playbook: --- - name: Add users and pubkeys hosts: server1 become: yes vars_files: - passwd.yml - vars.yml tasks: - name: "Add users to gong server" user: name: "{{

Re: [ansible-project] with_items stat too verbose

2019-02-06 Thread Rob Wagner
Thanks Felix. That's a clever idea. I tested it and I get: ok: [localhost] => (item=/dev) => { "changed": false, "item": [ "/dev", "root" ], "msg": "All assertions passed" } ok: [localhost] => (item=/home) => { "changed": false, "item": [ "/home",

[ansible-project] Ansible syntax check fail in gitlab-ci

2019-02-06 Thread Rémi Desgrange
Hi, I have a working playbook. It works on my machine, but also in CI. But running "ansible-playbook -i hosts.yml site.yml --syntax-check" in a gitlab-ci with a docker container (image: williamyeh/ansible:ubuntu16.04) doesn't work. Here is the message : ERROR! Syntax Error while loading

Re: [ansible-project] Unable to run 'expect' module

2019-02-06 Thread Diptajeet Khan
Alright! Best Regards Diptajeet On Wed, Feb 6, 2019, 8:53 PM Alain Désilets > > On Wed, Feb 6, 2019 at 9:29 AM Diptajeet Khan wrote: > >> I see. Can you also try "brew install pexpect" and run the Ansible code. >> > > Found it! By default, Ansible uses a particular path for finding the >

[ansible-project] Re: Learning Ansible, tutorials and trainnings

2019-02-06 Thread mlturnbow1s
Keep in mind, you could use auto-deploy and host profiles to simplify ESXi deployments. Not to say you need to go that route, just something to think about. On Tuesday, February 5, 2019 at 8:45:13 AM UTC-6, Krisztián Tóth wrote: > > Hi everyone, > > I was wondering if you could recommend some

[ansible-project] Ansible Tower - Unable to delete host from inventory while job template is running (Scoped using limit).

2019-02-06 Thread mlturnbow1s
I hope I can post issues related to Ansible Tower here as well. Please let me know if this is not the right place. So the issue that I am seeing is as follows: - I have an inventory in Ansible Tower called "Test Servers". - I have a job template for the "Test Playbook" created and pointed at

Re: [ansible-project] Unable to run 'expect' module

2019-02-06 Thread Alain Désilets
On Wed, Feb 6, 2019 at 9:29 AM Diptajeet Khan wrote: > I see. Can you also try "brew install pexpect" and run the Ansible code. > Found it! By default, Ansible uses a particular path for finding the Python interpreter it uses to run the playbooks. This turned out to be different from the

Re: [ansible-project] Unable to run 'expect' module

2019-02-06 Thread Diptajeet Khan
I see. Can you also try "brew install pexpect" and run the Ansible code. Best Regards Diptajeet On Wed, Feb 6, 2019, 7:53 PM Alain Désilets > On Wed, Feb 6, 2019 at 8:22 AM Diptajeet Khan wrote: > >> Install "expect" using "yum" rather than "pexpect" using "pip". >> > > Thx Diptajeet, > > I am

Re: [ansible-project] Unable to run 'expect' module

2019-02-06 Thread Alain Désilets
On Wed, Feb 6, 2019 at 8:22 AM Diptajeet Khan wrote: > Install "expect" using "yum" rather than "pexpect" using "pip". > Thx Diptajeet, I am on OSX, so I can't install with yum. I did however install 'expect' using homebrew as follows: brew install expect This installed v5.45.4 of expect.

[ansible-project] Re: hii, i got this error while executing the playbook for installing a package using variable module.

2019-02-06 Thread Jhon J. Castro H.
Write sudo with the command to try El sábado, 19 de enero de 2019, 11:17:58 (UTC-3), harip...@gmail.com escribió: > > TASK [install a package] > > fatal: [172.31.37.218]: FAILED!

Re: [ansible-project] Unable to run 'expect' module

2019-02-06 Thread Diptajeet Khan
Install "expect" using "yum" rather than "pexpect" using "pip". Best Regards Diptajeet On Wed, Feb 6, 2019, 6:21 PM Alain Désilets I am trying to run a playbook (see end of the post), which invokes the > 'expect' module. > > But when I run it, I get error: > > TASK [Run anaconda installation

[ansible-project] Unable to run 'expect' module

2019-02-06 Thread Alain Désilets
I am trying to run a playbook (see end of the post), which invokes the 'expect' module. But when I run it, I get error: TASK [Run anaconda installation script] fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "The pexpect python module is

[ansible-project] Generate resgiter from dict var

2019-02-06 Thread Rafael Tomelin
Hi , I need create register from variable. My variable is: my_rules: - name: 'AllowSSH' protocol: Tcp destination_port_range: 22 access: Allow priority: 100 direction: Inbound - name: 'AllowHTTPS' protocol: Tcp