Joined February 2015
·

Arbab Nazar

Pakistan
·

Thanks for such a nice playbook, but we can use the debconf module to accept the license.

debconf: name='oracle-java7-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'

Posted to Use Ansible vault with Vagrant over 1 year ago

We can also use like this:

config.vm.provision :ansible do |ansible|

ansible.ask_vault_pass = true

ansible.playbook = "site.yml"

ansible.sudo = true

ansible.extra_vars = { ansible_ssh_user: 'vagrant' }

ansible.raw_arguments  = "--private-key=~/.vagrant.d/insecure_private_key"

ansible.host_key_checking = false

end

Excellent. Thanks

Posted to ansible install java 8 over 1 year ago

Instead of using two times shell command, we can use the debconf module to accept the licence.

debconf: name='oracle-java8-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'

Thanks

Excellent tips. Thanks

Thanks for such a nice tutorial/article:
I think the better option is to use like this:

  • name: Install Apache

apt: name={{ item }} state=installed update_cache=yes

with_items:

- apache2

-  libapache2-mod-php5

and also:

  • name: Install MariaDB

apt: name={{ item }} state=installed update_cache=yes

with_items:

- mariadb-server

-  python-mysqldb

Thanks

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills