diff --git a/tasks/install.yaml b/tasks/install.yaml index b432c89..256404c 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -12,19 +12,19 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Define openstacksdk_build_depends. +- name: Define openstacksdk_build_depends set_fact: openstacksdk_build_depends: "{{ __openstacksdk_build_depends | list }}" when: openstacksdk_build_depends is not defined -- name: Ensure build dependencies are present. +- name: Ensure build dependencies are present become: yes package: name: "{{ openstacksdk_build_depends }}" state: present when: openstacksdk_install_method == 'git' or openstacksdk_install_method == 'pip' -- name: Define openstacksdk_pip_executable if needed. +- name: Define openstacksdk_pip_executable if needed set_fact: openstacksdk_pip_executable: pip3 when: diff --git a/tasks/install/git.yaml b/tasks/install/git.yaml index 1d7fa7b..e74f46b 100644 --- a/tasks/install/git.yaml +++ b/tasks/install/git.yaml @@ -12,14 +12,14 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Git clone openstacksdk. +- name: Git clone openstacksdk git: dest: "{{ openstacksdk_git_dest }}" repo: "{{ openstacksdk_git_uri }}" update: "{{ openstacksdk_git_update|default(omit) }}" version: "{{ openstacksdk_git_version }}" -- name: Set openstacksdk_pip_name to local git repo. +- name: Set openstacksdk_pip_name to local git repo set_fact: openstacksdk_pip_name: "file://{{ openstacksdk_git_dest }}" diff --git a/tasks/install/pip.yaml b/tasks/install/pip.yaml index 015123b..a975817 100644 --- a/tasks/install/pip.yaml +++ b/tasks/install/pip.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Install openstacksdk using pip. +- name: Install openstacksdk using pip become: yes pip: executable: "{{ openstacksdk_pip_executable|default(omit) }}" diff --git a/tasks/main.yaml b/tasks/main.yaml index 5fe8184..79283bb 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- name: Include OS-specific variables. +- name: Include OS-specific variables include_vars: "{{ ansible_os_family }}.yaml" - include: "{{ openstacksdk_task }}.yaml"