Re: [ansible-project] Ansible installation issue - Makefile

2018-03-21 Thread Andreas Olsson
ons 2018-03-21 klockan 06:40 -0700 skrev Camille Beaudou: > I'm trying to install Ansible on a Ubuntu 16.04 VM (VMWare). I'm > following the install instruction on Ansible website, however when > executing the command "make rpm", i get the following error message > ... How did you end up at those

Re: [ansible-project] vim as default editor on ubuntu/debian

2018-01-21 Thread Andreas Olsson
sön 2018-01-21 klockan 16:57 -0800 skrev Joli Martinez: > I am looking for a way to make vim the default editor on my Ubuntu > and Debian based system. Could you help me accomplish this? On the > CLI I know that I have to run "update-alternatives --config editor" > and then hit 3 for vim. I

Re: [ansible-project] Jinja2 Configuration Concern with {{ fqdn_hostname }} and .conf file

2017-12-27 Thread Andreas Olsson
ons 2017-12-27 klockan 22:30 -0800 skrev Heather Luna: > I have a configuration (.conf) file that I'm attempting to manipulate > by adding the {{ fdqn_hostname }} ONLY for the serverName piece, the > rest of the information like the SSL password is something that's > going to change across my

Re: [ansible-project] Re: Repository for Ansible Tower

2017-12-27 Thread Andreas Olsson
tis 2017-12-26 klockan 23:45 -0800 skrev Nuwan Vithanage: > curl -k -O > https://releases.ansible.com/awx/setup/ansible-tower-setup-latest.tar.gz Please noone take this literally, and actually use the -k/--insecure option when downloading software. // Andreas -- You received this message

Re: [ansible-project] Ansible playbook xml module - error when using in task

2017-10-01 Thread Andreas Olsson
lör 2017-09-30 klockan 22:41 -0700 skrev Sivakumar Lakshminarayanan: > When trying ansible xml module... > ... > ... > ansible 2.3.1.0 According to https://docs.ansible.com/ansible/latest/xml_module.html the xml module wasn't introduced until Ansible 2.4. // Andreas -- You received this

Re: [ansible-project] Git Module: Is it a "Pull on Remote" or "Pull on Local and Push to remote"

2017-09-30 Thread Andreas Olsson
fre 2017-09-29 klockan 14:03 -0700 skrev indraj joglekar: > How does the git module work? > > a) Does it do a pull on the remote server? > b) Does it first do a pull on the local admin server and then rsync > copy the repo to the remote server? The clone/pull happens locally on the remote server.

Re: [ansible-project] yaml language

2017-07-16 Thread Andreas Olsson
sön 2017-07-16 klockan 22:15 -0700 skrev Kannappan M: > Can  some one  please  guide  how to learn  yaml  codings  from > basics  to expert level to write in ansible playbooks What YAML resources have you managed to find on your own? Which concepts make sense and which don't? // Andreas -- You

Re: [ansible-project] am new to ansible need assistance

2017-07-16 Thread Andreas Olsson
sön 2017-07-16 klockan 11:16 -0700 skrev Kannappan M: > Am  new  to  ansible  can  some  one  please  guide  how  and > where  to start,  and  also  let  me know  how to  write  yaml > codding  effectively any books  or links https://docs.ansible.com/ansible/intro.html is a good starting point.

Re: [ansible-project] Re: Ansible 2.3 create new group on a host fails.

2017-07-15 Thread Andreas Olsson
lör 2017-07-15 klockan 11:04 -0700 skrev NixGeek: > man one reason ansible makes me crazy is the silly indented crap in > the playbook. That "silly indented crap" is more formally referred to as YAML. For better or worse it's fairly commonly used. Investing a bit of time in understanding YAML

Re: [ansible-project] Ansible 2.3 create new group on a host fails.

2017-07-15 Thread Andreas Olsson
lör 2017-07-15 klockan 09:18 -0700 skrev NixGeek: > My playbook > == > --- > > - hosts: myhosts >   tasks: > > - group: >     name: useradmins >     state: present > === It looks as if you have gotten the indentation wrong.

Re: [ansible-project] apt module behavior

2017-01-17 Thread Andreas Olsson
tis 2017-01-17 klockan 01:42 -0800 skrev Igor Schaefer: > Sure, all you know the situation, when you install a new version of > package  and you get a dialog window with warnings like "use existing > version of  config file or replace it with new one" or "that your > lovely function is  depricated

Re: [ansible-project] Unable to Install Ansible

2017-01-11 Thread Andreas Olsson
ons 2017-01-11 klockan 02:38 -0800 skrev SR: > I tried installing ansible on centos vagrant, but can’t install. As > Im new  to this, request some one to help me on this. Easiest is probably to install Ansible from EPEL. If nothing else it's not unlikely that you might want that repository for

Re: [ansible-project] Re: Need to source .bash_profile on target system

2017-01-10 Thread Andreas Olsson
tis 2017-01-10 klockan 21:59 -0800 skrev Mona Gopal: > Even i am trying to source the bashrc file on my target system. > Ansible runs successfully without errors but doesn't source the file. > Below is my task: > > - name: source bashrc file >   shell: source ~/.bashrc >   args: >  

Re: [ansible-project] Help with package installation playbook

2017-01-04 Thread Andreas Olsson
ons 2017-01-04 klockan 13:25 +0100 skrev Cosimo Streppone: > ... > I'm still unsure about this error message when the facts gathering is > not happening: > > "Could not detect which package manager to use. Try gathering facts > or setting the \"use\" option." > > what is the "use" option? See

Re: [ansible-project] Help with package installation playbook

2017-01-03 Thread Andreas Olsson
Hello Cosimo Indeed it looks as if facts aren't being gathered, which is kind of odd, since it should happen by default. By then each play should contain the following at the start. TASK [setup] *** ok: [localhost.localdomain]

Re: [ansible-project] Re: ansible-nsupdate - module allowing dynamic dns updates

2017-01-02 Thread Andreas Olsson
sön 2017-01-01 klockan 10:37 -0800 skrev 'Michael Pophal': > I'm very keen on this module, but unfortunately I've no idea how to > install it. Could you please drop a hint, I'm just a ansible user ;-) Well, here is how I installed it. The following commands being relative to the playbook

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-08 Thread Andreas Olsson
ons 2016-12-07 klockan 23:40 -0800 skrev Sebastian S.: > which ansible says: /usr/local/bin/ansible That looks more like somewhere where Pip would install Ansible, or where someone would install Ansible manually. Any chance that you also have a /usr/bin/ansible, which better match the apt

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Andreas Olsson
ons 2016-12-07 klockan 03:52 -0800 skrev Sebastian S.: > ansible@DE9899S76 ~ % ansible --version > ansible 2.0.0.2 > > 3. apt-cache --showpkg ansible says it' 2.2.0.0 What does `which ansible` say? That is, any chance that you have an additional version of Ansible installed, in addition to

Re: [ansible-project] Ansible 2.2: register with a variable in the name

2016-12-02 Thread Andreas Olsson
Ok, here is a minimal playbook showing my particular issue.   ---   - hosts: localhost vars:   foo: pwfile tasks:   - name: lookup /etc/passwd stat: path=/etc/passwd register: abc_{{ foo }}_def   - name: Display abc_{{ foo }}_def content debug:

Re: [ansible-project] flaky apt installs today on ubuntu

2016-12-02 Thread Andreas Olsson
fre 2016-12-02 klockan 15:16 -0800 skrev ja...@blendlabs.com: > {"failed": true, "invocation": {"module_args": {"cache_valid_time": > null, "deb": null, "default_release": null, "dpkg_options": "force- > confdef,force-confold", "force": false, "install_recommends": null, > "name": ["cryptsetup",

[ansible-project] Ansible 2.2: register with a variable in the name

2016-11-27 Thread Andreas Olsson
Greetings Since moving from Ansible 2.1.3 to Ansible 2.2.0 I have run into an issue with register, and when it's variable name is built up using a variable. I have no idea if this is due to a regression in Ansible 2.2, or if I have been doing something wrong/unsupported which I finally got bitten

Re: [ansible-project] Python not found in Ubuntu 16.04 server

2016-05-16 Thread Andreas Olsson
On ons, 2016-05-11 at 03:28 -0700, codfather wrote: > Andreas, when I implemented this, I had to put a line in the section > to use  sudo for the installation, which makes sense, just wondering > if you had achieved that another way , just curious. Yepp, I have the following in my ansible.cfg  

Re: [ansible-project] Can you override location for "cp" folder on remote hosts?

2016-04-28 Thread Andreas Olsson
On tor, 2016-04-28 at 08:54 -0700, johhue wrote: > Is there a way to overrride where this "cp" directory goes? Put something like this in your ansible.cfg. [ssh_connection] control_path = /path/to/new_cp/ansible-ssh-%%h-%%p-%%r See also 

Re: [ansible-project] Python not found in Ubuntu 16.04 server

2016-04-24 Thread Andreas Olsson
On sön, 2016-04-24 at 12:00 -0700, Peter Loron wrote: > I'm trying to provision a Ubuntu 16.04 server machine. When running > a playbook which has worked fine on Ubuntu 14.x and 15.x, it fails > with this error: > ... > Ubuntu 16.04 has python3, not 2.7.x. Why is this not being > autodetected? No

Re: [ansible-project] Ansible2 in stable repo

2016-03-19 Thread Andreas Olsson
lör 2016-03-19 klockan 05:51 -0700 skrev George Khan: > I ask it jan 18, and ask after 2 month: Any news about ansible2 in > debian8/centos7 _stable_ repo? :) I wouldn't keep my hopes up about seeing ansible 2.x in the regular Jessie repositories. That because of Debian's general policy about