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