Created
November 1, 2023 06:54
-
-
Save vivekteega/6e37905d1e509491d3c27cf870eb0004 to your computer and use it in GitHub Desktop.
Ansible playbook for FLO core wallet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Build-Setup FLO Core wallet | |
hosts: turing.ranchimall.net | |
remote_user: production | |
gather_facts: true | |
tasks: | |
- name: Installing build requirements | |
become: true | |
package: | |
name: "{{item}}" | |
state: present | |
update_cache: yes | |
cache_valid_time: 3600 | |
loop: | |
- build-essential | |
- libtool | |
- autotools-dev | |
- automake | |
- pkg-config | |
- libssl-dev | |
- libevent-dev | |
- bsdmainutils | |
- libboost-all-dev | |
- name: Installing Berkeley DB prereq 1 | |
become: true | |
package: | |
name: software-properties-common | |
state: present | |
update_cache: yes | |
cache_valid_time: 3600 | |
- name: Installing Berkeley DB prereq 2 | |
become: true | |
package: | |
name: "{{item}}" | |
state: present | |
update_cache: yes | |
cache_valid_time: 3600 | |
loop: | |
- libminiupnpc-dev | |
- libzmq3-dev | |
- libdb++-dev | |
- name: Clone Bitcoin repo | |
ansible.builtin.git: | |
repo: 'https://github.com/bitcoin/bitcoin.git' | |
dest: /home/production/Dev/bitcoin | |
- name: Install Berkeley db | |
command: chdir=/home/production/Dev/bitcoin /home/production/Dev/bitcoin/contrib/install_db4.sh /home/production/Dev/bitcoin | |
- name: Install Ubuntu GUI dependencies | |
become: true | |
package: | |
name: "{{item}}" | |
state: present | |
update_cache: yes | |
cache_valid_time: 3600 | |
loop: | |
- libqt5gui5 | |
- libqt5core5a | |
- libqt5dbus5 | |
- qttools5-dev | |
- qttools5-dev-tools | |
- libprotobuf-dev | |
- protobuf-compiler | |
- libqrencode-dev | |
- name: Clone FLO repo | |
ansible.builtin.git: | |
repo: 'https://github.com/ranchimall/FLO-wallet-core.git' | |
dest: /home/production/Dev/FLO-wallet-core | |
- name: ./autogen.sh | |
command: chdir=/home/production/Dev/FLO-wallet-core ./autogen.sh | |
- name: ./configure | |
command: chdir=/home/production/Dev/FLO-wallet-core ./configure BDB_LIBS="-L/home/production/Dev/bitcoin/db4/lib -ldb_cxx-4.8" BDB_CFLAGS="-I/home/production/Dev/bitcoin/db4/include" | |
- name: Build the default target, sudo make | |
make: | |
chdir: /home/production/Dev/FLO-wallet-core | |
become: yes | |
- name: Run 'install' target as root, sudo make install | |
make: | |
chdir: /home/production/Dev/FLO-wallet-core | |
target: install | |
become: yes | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment