On 2015-05-16 10:01, Brian Coca wrote:
> DEBIAN_FRONTEND is just being set as an environment variable to tell
> apt not to prompt.
I realise that, I knew you could do that with shell, but I hadn't realised it
worked with cmd which I thought was a C exec of a binary command.
> what OS are you running against? can you share the 'simple play'?
Ubuntu 14.04, although, in an LXC container, but I can ssh into that
container, and "sudo apt-get install tmux", and the sysctl module does work.
As far as ansible is concerned, that container is just another Ubuntu machine:
main.yaml in role:
- name: swappiness
sysctl: name=vm.swappiness value=0 reload=yes checks=none
- name: install important packages
apt: name=tmux
site.yaml
- name: Apply base Linux config
hosts: all
gather_facts: no
sudo: yes
remote_user: yves
roles:
- baselinux
The command I use to run it:
ansible-playbook --user yves -K site.yaml
--
http://yves.zioup.com
gpg: 4096R/32B0F416
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/55577188.2030808%40zioup.com.
For more options, visit https://groups.google.com/d/optout.