source.yml 839 B

123456789101112131415161718
  1. - name: Download libsodium
  2. get_url: dest={{libsodium_build_dir}} url={{libsodum_src_url}}
  3. - name: Extract libsodium
  4. unarchive: dest={{libsodium_build_dir}} copy=no src="/usr/src/libsodium-{{libsodum_version}}.tar.gz" creates="{{libsodium_build_dir}}/libsodium-{{libsodum_version}}"
  5. - name: Configure libsodium
  6. register: libsodiumconfigured
  7. command: ./configure chdir="{{libsodium_build_dir}}/libsodium-{{libsodum_version}}" creates="{{libsodium_build_dir}}/libsodium-{{libsodum_version}}/Makefile"
  8. - name: Compile libsodium
  9. when: libsodiumconfigured|changed
  10. register: libsodiumcompiled
  11. shell: make && make check chdir="{{libsodium_build_dir}}/libsodium-{{libsodum_version}}"
  12. - name: Install libsodium
  13. when: libsodiumcompiled|changed
  14. command: make install chdir="{{libsodium_build_dir}}/libsodium-{{libsodum_version}}"