Skip to content

Instantly share code, notes, and snippets.

@samsee
Last active March 31, 2019 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsee/922ee5954eb03ce398a126bb7a4bab53 to your computer and use it in GitHub Desktop.
Save samsee/922ee5954eb03ce398a126bb7a4bab53 to your computer and use it in GitHub Desktop.
ansible playbooks
---
- hosts: localhost
become: true
tasks:
- name: Install basic packages
apt:
name: ['curl', 'apt-transport-https']
state: present
force: yes
- name: Install Python3.4
apt: name=python3.4 state=latest
- name: Install pip
apt: name=python3-pip state=latest
- name: Install django
pip: name=django executable=/usr/bin/pip3
- name: Add Node repository
shell: curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
args:
warn: no
- name: Install node
apt: name=nodejs state=present
---
- hosts: localhost
become: true
tasks:
- name: Install basic packages
apt:
name: ['curl', 'apt-transport-https']
state: present
force: yes
- name: Install Python3.5
apt: name=python3.5 state=latest
- name: Install pip
apt: name=python3-pip state=latest
- name: Install django
pip: name=django executable=/usr/bin/pip3
- name: Add Node repository
shell: curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
args:
warn: no
- name: Install node
apt: name=nodejs state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment