install_libjwt.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Git clone libjwt
  16. git:
  17. repo: "{{ libjwt_repo }}"
  18. dest: "{{ libjwt_dir }}"
  19. clone: yes
  20. depth: 1
  21. #single_branch: yes
  22. version: v1.12.0
  23. tags: install
  24. - name: Execute autoreconf
  25. shell: set -o pipefail && cd "{{ libjwt_dir }}" && autoreconf --force --install
  26. changed_when: false
  27. environment:
  28. PKG_CONFIG_PATH: "{{ jansson_path }}"
  29. PATH: "{{ ansible_env.PATH }}:{{ jansson_path }}"
  30. - name: Configure libjwt
  31. shell: set -o pipefail && cd "{{ libjwt_dir }}" && ./configure --prefix=/usr/local
  32. changed_when: false
  33. environment:
  34. PKG_CONFIG_PATH: "{{ jansson_path }}"
  35. PATH: "{{ ansible_env.PATH }}:{{ jansson_path }}"
  36. - name: Execute make
  37. shell: set -o pipefail && cd "{{ libjwt_dir }}" && make -j
  38. changed_when: false
  39. environment:
  40. PKG_CONFIG_PATH: "{{ jansson_path }}"
  41. PATH: "{{ ansible_env.PATH }}:{{ jansson_path }}"
  42. - name: Execute make install
  43. shell: set -o pipefail && cd "{{ libjwt_dir }}" && make install
  44. changed_when: false
  45. environment:
  46. PKG_CONFIG_PATH: "{{ jansson_path }}"
  47. PATH: "{{ ansible_env.PATH }}:{{ jansson_path }}"