Tag Archives: Ansible

Accessing ec2.py dynamic inventory variables in templates using Ansible


I’m using Ansible to provision Tomcat, Memcached, Postgres. With static inventory, I’m able to do this hosts [dbservers] db.local [appservers] app1.local app2.local app/tasks/setup_tomcat_app.yml – name: Setup SB ROOT context template: src=root.xml.j2 dest=/var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml notify: – Restart Tomcat tags: – sb_tomcat app/templates/root.xml.j2 {% set dbserver = hostvars[groups[‘dbservers’][0]][‘ansible_eth1’][‘ipv4’][‘address’] %} <resource name="”jdbc/postgres/configuration”" auth="”Container”" factory="”org.apache.tomcat.jdbc.pool.DataSourceFactory”" type="”javax.sql.DataSource”" driverclassname="”org.postgresql.Driver”" url="”jdbc:postgresql://{{dbserver}}:5432/configuration”" ….="" i’m="" […]

https://innopy.wordpress.com/2015/02/13/accessing-ec2-py-dynamic-inventory-variables-in-templates-using-ansible/

Automating Linux Security Best Practices with Ansible


Suppose you’re setting up a new Linux server in Amazon AWS, Digital Ocean, or even within your private network. What are some of the low-hanging fruits one can knock-out to improve the security of a Linux system?

https://dantehranian.wordpress.com/2015/08/10/automating-linux-security-best-practices-with-ansible/

Part 2: Build a hybrid mobile app with Ionic, Cordova, NodeJS, MongoDB, Redis, Ansible and Vagrant


via Build a hybrid mobile app with Ionic, Cordova, Node.js, MongoDB, Redis, Ansible and Vagrant part II — Martin Micunda.

Build backend code with Node.js, MongoDB and Redis

In part 1 of this series I showed you how to prepare development environment with Vagrant and Ansible. In this second post we gonna build back-end code with Node.js, MongoDB and Redis for our ionic-photo-gallery app.

The code for this project can be found on the GitHub.

Part 1: Build a hybrid mobile app with Ionic, Cordova, Node.js, MongoDB, Redis, Ansible and Vagrant


via Build a hybrid mobile app with Ionic, Cordova, Node.js, MongoDB, Redis, Ansible and Vagrant part I — Martin Micunda.

This is the first post of three-part blog series where we gonna build a hybrid mobile app with authentication that allows registered users view a gallery of photos they have uploaded via the camera phone.

  • part I – prepare the development environment with Vagrant and Ansible
  • part II – build backend code with Node.js, MongoDB and Redis
  • part III – build hybrid mobile app with Ionic and Apache Cordova

The code for this project can be found on the GitHub and final app should look like this: