46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
# Install Hamlib
|
|
#
|
|
|
|
- name: Create various directories
|
|
file:
|
|
path: "{{item}}"
|
|
state: directory
|
|
owner: busnet
|
|
group: busnet
|
|
mode: u=rwx,g=rwx,o=rx
|
|
with_items:
|
|
- /opt/busnet/hamlib
|
|
- /opt/busnet/hamlib/source
|
|
|
|
#- name: Install correct prerequite packages when running Ubuntu Noble
|
|
# ansible.builtin.include_tasks: ubuntu_noble.yml
|
|
# when: ansible_distribution == "Ubuntu" and ansible_distribution_release == "noble"
|
|
|
|
- name: Git stuff
|
|
ansible.builtin.command:
|
|
cmd: "git config --global --add safe.directory /opt/busnet/hamlib/source"
|
|
|
|
- name: Checkout Hamlib source
|
|
ansible.builtin.git:
|
|
repo: "https://github.com/Hamlib/Hamlib"
|
|
dest: /opt/busnet/hamlib/source
|
|
version: 4.6.5
|
|
|
|
- name: bootstrap
|
|
ansible.builtin.command:
|
|
cmd: "./bootstrap"
|
|
chdir: /opt/busnet/hamlib/source
|
|
|
|
- name: configure
|
|
ansible.builtin.command:
|
|
cmd: "./configure"
|
|
chdir: /opt/busnet/hamlib/source
|
|
|
|
- name: make
|
|
community.general.make:
|
|
chdir: /opt/busnet/hamlib/source
|
|
|
|
- name: make install
|
|
community.general.make:
|
|
chdir: /opt/busnet/hamlib/source
|
|
target: install |