Substitute include by include_task

This commit is contained in:
Daniel A. Maierhofer
2018-03-05 23:58:41 +01:00
parent f145028a6e
commit cba85502a5

View File

@@ -10,14 +10,14 @@
ssh_key_bits: 4096
ssh_key_file: .ssh/id_rsa
- name: install rvm prerequires
apt: pkg="{{ item }}" cache_valid_time=3600 update_cache=yes state=present
with_items: "{{ ruby_req_packages }}"
- name: Install RVM
include: 'rvm.yml'
include_task: 'rvm.yml'
become: yes
become_user: "{{ rvm1_user }}"
@@ -25,11 +25,11 @@
# command: '{{ rvm1_rvm }} install requirements'
# changed_when: False
# when: rvm1_rubies
- name: Install rubies
command: '/home/{{ rvm1_user }}/.rvm/bin/rvm install requirements'
when: rvm1_rubies
when: rvm1_rubies
- name: Detect if rubies are installed
@@ -53,13 +53,6 @@
- name: Install Ruby and Gems
include: 'rubies.yml'
include_task: 'rubies.yml'
become: yes
become_user: "{{ rvm1_user }}"