Last active
March 31, 2019 11:17
-
-
Save samsee/922ee5954eb03ce398a126bb7a4bab53 to your computer and use it in GitHub Desktop.
ansible playbooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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