File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ language: generic
5
5
python : " 2.7"
6
6
7
7
env :
8
- - TEST_SETUP=tests/test_setup .yml
8
+ - TEST_SETUP=tests/test .yml
9
9
10
10
before_install :
11
11
- sudo apt-get update -qq
@@ -22,5 +22,5 @@ script:
22
22
# Check the role/playbook's syntax.
23
23
- " ansible-playbook -i inventory $TEST_SETUP --syntax-check"
24
24
25
- # Run the role/playbook with ansible-playbook.
26
- - " ansible-playbook -i inventory $TEST_SETUP --connection=local --sudo"
25
+ # Run the setup role/playbook with ansible-playbook.
26
+ - " ansible-playbook -i inventory $TEST_SETUP --connection=local --sudo --tags='ansible-flaskapp-setup' "
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ ADD ./tests/localhosts /etc/ansible/hosts
7
7
8
8
ENV WORKDIR /build/ansible-flaskapp
9
9
10
- RUN ansible-playbook $WORKDIR/role.yml -c local
10
+ RUN ansible-playbook $WORKDIR/role.yml -c local --tags "ansible-flaskapp-setup"
Original file line number Diff line number Diff line change 5
5
sudo : yes
6
6
roles :
7
7
- role : ./
8
- tags : ansible-flaskapp-setup
Original file line number Diff line number Diff line change 2
2
# Main entry: runs setup and deploy task
3
3
4
4
- include : setup.yml
5
- tags : ansible-flaskapp-setup
5
+ tags : [ ansible-flaskapp-setup]
6
6
7
7
- include : deploy.yml
8
- tags : ansible-flaskapp-deploy
8
+ tags : [ ansible-flaskapp-deploy]
Original file line number Diff line number Diff line change 5
5
sudo : yes
6
6
roles :
7
7
- role : ansible-flaskapp
8
- tags : ansible-flaskapp-setup
You can’t perform that action at this time.
0 commit comments