Skip to content

Commit 0fde37d

Browse files
committed
⚡ Enhancing outdated ansible syntax
1 parent 358bc5f commit 0fde37d

File tree

3 files changed

+9
-25
lines changed

3 files changed

+9
-25
lines changed

ansible/roles/Circus/tasks/main.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@
1313
extra_args: --upgrade --index-url=https://pypi.python.org/simple/
1414

1515
- name: Install python dependencies
16-
pip: name={{item}} virtualenv={{ deploy_path }}/venv virtualenv_site_packages=no
17-
with_items:
18-
- setuptools
19-
- chaussette
20-
- waitress==0.9.0
21-
- tg.devtools
22-
- backlash
23-
- speaklater
24-
- circus-web
25-
- PasteDeploy
26-
16+
pip:
17+
name: ['setuptools', 'chausette', 'waitress==0.9.0', 'tg.devtools', 'backlash', 'speaklater', 'circus-web', 'PasteDeploy']
18+
virtualenv: "{{ deploy_path }}/venv"
19+
virtualenv_site_packages: no
2720

2821
- name: Get code from repository
2922
git: repo={{repository}} version={{current_branch}} dest={{deploy_path}}/app force=yes

ansible/roles/Configure-Circus/tasks/main.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22
# tasks file for Configure-Circus
33

44
- name: Install software dependencies
5-
apt: name={{item}} update_cache=yes state=installed
6-
with_items:
7-
- python-pip
8-
- python-dev
9-
- build-essential
10-
- python-virtualenv
11-
- libxml2-dev
12-
- libxslt-dev
13-
- libzmq-dev
14-
- libevent-dev
15-
- git-core
5+
apt:
6+
name: ['python-pip', 'python-dev', 'build-essential', 'python-virtualenv', 'libxml2-dev', 'libxslt-dev', 'libzmq-dev', 'libevent-dev', 'git-core']
7+
update_cache: yes
8+
state: present
169

1710
- name: Install Circus
1811
pip:

ansible/roles/nginx/tasks/main.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
- name: install nginx packages
22
apt:
3-
name: "{{item}}"
3+
name: nginx
44
state: present
5-
with_items:
6-
- nginx
75

86
- name: copy conf file
97
template:

0 commit comments

Comments
 (0)