New fresh install - on existent raspian

@bob: Everything you’ve done so far is correct! :slight_smile: You are just missing the installation of the latest version of ansible (>=2.4) on the raspberry pi before being able to run ansible-playbook.

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-apt-debian

I currently don’t have access to a rasberry pi to test, but probably installing ansible via pip could be a viable option if the version provided via apt is too old:

sudo apt-get install python-pip
sudo pip install ansible
1 Like

Downloading https://files.pythonhosted.org/packages/08/19/cf56e60efd122fa6d2228118a9b345455b13ffe16a14be81d025b03b261f/PyNaCl-1.2.1.tar.gz (3.3MB)
100% |████████████████████████████████| 3.3MB 58kB/s
Complete output from command python setup.py egg_info:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libffi’ found
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-YQ620S/pynacl/setup.py”, line 251, in
“Programming Language :: Python :: 3.6”,
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 317, in init
self.fetch_build_eggs(attrs[‘setup_requires’])
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 372, in fetch_build_eggs
replace_conflicting=True,
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 846, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 1118, in best_match
return self.obtain(req, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources/init.py”, line 1130, in obtain
return installer(requirement)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 440, in fetch_build_egg
return cmd.easy_install(req)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 699, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 725, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 906, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1145, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1133, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-YQ620S/pynacl/
pi@raspberrypi:~/satnogs-client-ansible $

@bob, one of the concepts of Ansible is that the configuration tool does not have to run on the target to be configured. Basically, Ansible can be executed on any Linux host and will connect via SSH and set up Raspbian. That’s why there are no instructions on how to install Ansible on Raspbian.

Here are the installation instructions for Debian for people who want to configure Raspbian within itself. Normally, this should be the only requirement for running the playbook.

1 Like

Latest Releases Via Apt (Debian)

Debian users may leverage the same source as the Ubuntu PPA.

Add the following line to /etc/apt/sources.list:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

get the follow error:

                                                                  [ Error writing /etc/apt/sources.list: Permission denied ]

error solved via

sudo nano /etc/apt/sources.list

now to next step.

Ansible-playbook still not running.

Can you share the contents of the file:

setup.sh

or other files that will control playbook in satnogs-client?

When I run the following:

pi@raspberrypi:~/satnogs-client-ansible $ ansible-playbook -i production/inventory site.yml

ERROR! ‘import_playbook’ is not a valid attribute for a Play

The error appears to have been in ‘/home/pi/satnogs-client-ansible/site.yml’: line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  • import_playbook: satnogs-setups.yml
    ^ here

found it here:


Ansible playbook to provision satnogs-client

pi@raspberrypi:~/satnogs-client-ansible $ ansible-playbook -i production/inventory site.yml
ERROR! playbook entries must be either a valid play or an include statement

The error appears to have been in ‘/home/pi/satnogs-client-ansible/site.yml’: line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  • satnogs-setups.yml
    ^ here
    :
    pi@raspberrypi:~/satnogs-client-ansible $

This is the contents of site.yml


  • satnogs-setups.yml
  • satnogs-clients.yml
  • satnogs-radios.yml
  • hamlib-utils.yml

And this is the contents of satnogs-setup.yml


  • hosts: satnogs-setups
    roles:
    • role: common
      tags:
      • common
    • role: satnogs-setup tags:
      • satnogs-setup

Not sure if the problem is in site.yml?

Seems I am so close to getting it to run, but am totally stuck at this point.

I am using windows 10 desktop and ssh into rpi

Hey @bob,

Please, do not edit the yml files. The only file you need to edit is the production/inventory/hosts, as described in the SatNOGS Client Ansible instructions.

The import error is probably because you still do not have the latest Ansible version installed. Please, follow one-by-one the Debian instruction on how to install Ansible. Now that you have already installed an earlier version of Ansible, you will have to run apt-get upgrade as well.

1 Like

Slowly getting there. But stumped again.

pi@raspberrypi:~/satnogs-client-ansible $ ansible-playbook -i production/inventory -K site.yml
SUDO password:

PLAY [satnogs-setups] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
fatal: [satnogs]: FAILED! => {“changed”: false, “cmd”: “apt-get install --no-install-recommends python-apt -y -q”, “msg”: “E: Package ‘python-apt’ has no installation candidate”, “rc”: 100, “stderr”: “E: Package ‘python-apt’ has no installation candidate\n”, “stderr_lines”: [“E: Package ‘python-apt’ has no installation candidate”], “stdout”: “Reading package lists…\nBuilding dependency tree…\nReading state information…\nPackage python-apt is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n python3-apt python-apt-common\n\n”, “stdout_lines”: [“Reading package lists…”, “Building dependency tree…”, “Reading state information…”, “Package python-apt is not available, but is referred to by another package.”, “This may mean that the package is missing, has been obsoleted, or”, “is only available from another source”, “However the following packages replace it:”, " python3-apt python-apt-common", “”]}
to retry, use: --limit @/home/pi/satnogs-client-ansible/site.retry

PLAY RECAP *********************************************************************
satnogs : ok=3 changed=0 unreachable=0 failed=1

pi@raspberrypi:~/satnogs-client-ansible $

pi@raspberrypi:~/satnogs-client-ansible $ ansible --version
ansible 2.6.4
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/home/pi/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
pi@raspberrypi:~/satnogs-client-ansible $

Finished at last. Thanks guys.

I will post a rough draft of the installation steps in another post.

2 Likes

pi@raspberrypi:~/satnogs-client-ansible $ ansible-playbook -i production/inventory -K site.yml
SUDO password:

PLAY [satnogs-setups] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [satnogs]

TASK [common : Install packages] ***********************************************
ok: [satnogs] => (item=acl)
ok: [satnogs] => (item=build-essential)
ok: [satnogs] => (item=rng-tools)
ok: [satnogs] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [satnogs]

TASK [common : Disable swap file] **********************************************
ok: [satnogs]

TASK [common : Add ZRAM init script] *******************************************
ok: [satnogs]

TASK [satnogs-setup : Install Ansible repository keys] *************************
ok: [satnogs]

TASK [satnogs-setup : Install Ansible repository] ******************************
ok: [satnogs]

TASK [satnogs-setup : Install Ansible package] *********************************
ok: [satnogs]

TASK [satnogs-setup : Configure satnogs-setup] *********************************
ok: [satnogs]

TASK [satnogs-setup : Set up inventory] ****************************************
changed: [satnogs]

TASK [satnogs-setup : Create host variables directory] *************************
changed: [satnogs]

TASK [satnogs-setup : Create host variables file] ******************************
changed: [satnogs]

TASK [satnogs-setup : Create satnogs-setup share directory] ********************
changed: [satnogs]

TASK [satnogs-setup : Install satnogs-setup scripts] ***************************
changed: [satnogs] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satnogs-setup’])
changed: [satnogs] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/local/share/satnogs-setup/bootstrap.sh’])
changed: [satnogs] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/local/share/satnogs-setup/setup.sh’])
changed: [satnogs] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/local/share/satnogs-setup/config.sh’])

PLAY [satnogs-clients] *********************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [satnogs]

TASK [common : Install packages] ***********************************************
ok: [satnogs] => (item=acl)
ok: [satnogs] => (item=build-essential)
ok: [satnogs] => (item=rng-tools)
ok: [satnogs] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [satnogs]

TASK [common : Disable swap file] **********************************************
ok: [satnogs]

TASK [common : Add ZRAM init script] *******************************************
ok: [satnogs]

TASK [satnogs-client : Add satnogs-client service user] ************************
changed: [satnogs]

TASK [satnogs-client : Install dependencies] ***********************************
changed: [satnogs] => (item=virtualenv)
ok: [satnogs] => (item=python-dev)
changed: [satnogs] => (item=redis-server)
changed: [satnogs] => (item=libffi-dev)
changed: [satnogs] => (item=libssl-dev)
ok: [satnogs] => (item=git)
changed: [satnogs] => (item=python-apscheduler)
changed: [satnogs] => (item=python-sqlalchemy)
ok: [satnogs] => (item=python-requests)
changed: [satnogs] => (item=python-dateutil)
changed: [satnogs] => (item=python-ephem)
ok: [satnogs] => (item=python-tz)
changed: [satnogs] => (item=python-matplotlib)
ok: [satnogs] => (item=python-numpy)

TASK [satnogs-client : Check for virtualenv with no access to global site-packages] ***
ok: [satnogs]

TASK [satnogs-client : Remove virtualenv] **************************************
skipping: [satnogs] => (item=bin)
skipping: [satnogs] => (item=include)
skipping: [satnogs] => (item=lib)
skipping: [satnogs] => (item=local)
skipping: [satnogs] => (item=share)

TASK [satnogs-client : Uninstall satnogs-client] *******************************
changed: [satnogs]

TASK [satnogs-client : Install satnogs-client] *********************************
changed: [satnogs]

TASK [satnogs-client : Install satnogs-client configuration] *******************
changed: [satnogs]

TASK [satnogs-client : Add satnogs-client systemd service] *********************
changed: [satnogs]

TASK [satnogs-client : Use tmpfs for state directory] **************************
changed: [satnogs]

TASK [satnogs-client : Start satnogs-client service] ***************************
changed: [satnogs]

RUNNING HANDLER [satnogs-client : Restart satnogs-client service] **************
changed: [satnogs]

PLAY [satnogs-radios] **********************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [satnogs]

TASK [common : Install packages] ***********************************************
ok: [satnogs] => (item=acl)
ok: [satnogs] => (item=build-essential)
ok: [satnogs] => (item=rng-tools)
ok: [satnogs] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [satnogs]

TASK [common : Disable swap file] **********************************************
ok: [satnogs]

TASK [common : Add ZRAM init script] *******************************************
ok: [satnogs]

TASK [satnogs-radio : Add archive repositories keys] ***************************
changed: [satnogs] => (item=8B48AD6246925553)
changed: [satnogs] => (item=7638D0442B90D010)

TASK [satnogs-radio : Remove jessie backports repository] **********************
ok: [satnogs]

TASK [satnogs-radio : Install dependencies] ************************************
changed: [satnogs] => (item=[u’gnuradio’, u’gr-osmosdr’, u’gr-fcdproplus’])

TASK [satnogs-radio : Uninstall gr-satnogs] ************************************
ok: [satnogs]

TASK [satnogs-radio : Install gr-satnogs] **************************************

changed: [satnogs]

TASK [satnogs-radio : Blacklist SDR modules] ***********************************
changed: [satnogs] => (item=dvb_usb_rtl28xxu)

TASK [satnogs-radio : Unload SDR modules] **************************************
changed: [satnogs] => (item=dvb_usb_rtl28xxu)

TASK [satnogs-radio : Download UHD images] *************************************
changed: [satnogs]

PLAY [hamlib-utils] ************************************************************

TASK [Gathering Facts] *********************************************************
ok: [satnogs]

TASK [common : Check Ansible version] ******************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *********************************************
ok: [satnogs] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] ***********************************************
ok: [satnogs]

TASK [common : Install packages] ***********************************************
ok: [satnogs] => (item=acl)
ok: [satnogs] => (item=build-essential)
ok: [satnogs] => (item=rng-tools)
ok: [satnogs] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *******************
ok: [satnogs]

TASK [common : Disable swap file] **********************************************
ok: [satnogs]

TASK [common : Add ZRAM init script] *******************************************
ok: [satnogs]

TASK [hamlib-utils : Add hamlib utilities service user] ************************
changed: [satnogs]

TASK [hamlib-utils : Install hamlib utilities] *********************************
changed: [satnogs]

TASK [hamlib-utils : Install hamlib utilities configuration] *******************
changed: [satnogs]

TASK [hamlib-utils : Add rigctld systemd service] ******************************
changed: [satnogs]

TASK [hamlib-utils : Add rotctld systemd service] ******************************
changed: [satnogs]

TASK [hamlib-utils : Start/stop rigctld service] *******************************
ok: [satnogs]

TASK [hamlib-utils : Start/stop rotctld service] *******************************
changed: [satnogs]

RUNNING HANDLER [hamlib-utils : Restart rigctld service] ***********************
changed: [satnogs]

RUNNING HANDLER [hamlib-utils : Restart rotctld service] ***********************
changed: [satnogs]

PLAY RECAP *********************************************************************
satnogs : ok=68 changed=28 unreachable=0 failed=0

pi@raspberrypi:~/satnogs-client-ansible $
pi@raspberrypi:~/satnogs-client-ansible $ cd
pi@raspberrypi:~ $ sudo satnogs-setup
Starting Ansible Pull at 2018-09-27 01:26:02
/usr/local/bin/ansible-pull -d /root/.satnogs/ansible -U https://gitlab.com/librespacefoundation/satnogs/satnogs-client-ansible.git satnogs-setups.yml
[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi
localhost | SUCCESS => {
“after”: “6d5aeb07762dd0a89695361e6831c8b04412d994”,
“before”: null,
“changed”: true
}
[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi

PLAY [satnogs-setups] ********************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository keys] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository] ****************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible package] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Configure satnogs-setup] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Set up inventory] **************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables directory] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables file] ****************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-setup : Create satnogs-setup share directory] ******************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install satnogs-setup scripts] *************************************************************************************************************************************************
ok: [localhost] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satnogs-setup’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/local/share/satnogs-setup/bootstrap.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/local/share/satnogs-setup/setup.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/local/share/satnogs-setup/config.sh’])

PLAY RECAP *******************************************************************************************************************************************************************************************
localhost : ok=17 changed=1 unreachable=0 failed=0

Starting Ansible Pull at 2018-09-27 01:34:19
/usr/local/bin/ansible-pull -d /root/.satnogs/ansible -U https://gitlab.com/librespacefoundation/satnogs/satnogs-client-ansible.git satnogs-setups.yml
[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi
localhost | SUCCESS => {
“after”: “6d5aeb07762dd0a89695361e6831c8b04412d994”,
“before”: “6d5aeb07762dd0a89695361e6831c8b04412d994”,
“changed”: false,
“remote_url_changed”: false
}
[WARNING]: Could not match supplied host pattern, ignoring: raspberrypi

PLAY [satnogs-setups] ********************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository keys] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository] ****************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible package] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Configure satnogs-setup] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Set up inventory] **************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables directory] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables file] ****************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-setup : Create satnogs-setup share directory] ******************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install satnogs-setup scripts] *************************************************************************************************************************************************
ok: [localhost] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satnogs-setup’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/local/share/satnogs-setup/bootstrap.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/local/share/satnogs-setup/setup.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/local/share/satnogs-setup/config.sh’])

PLAY RECAP *******************************************************************************************************************************************************************************************
localhost : ok=17 changed=1 unreachable=0 failed=0

Updating software and applying configuration. This may take a while…

PLAY [satnogs-setups] ********************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository keys] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible repository] ****************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install Ansible package] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Configure satnogs-setup] *******************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Set up inventory] **************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables directory] ***********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Create host variables file] ****************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-setup : Create satnogs-setup share directory] ******************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-setup : Install satnogs-setup scripts] *************************************************************************************************************************************************
ok: [localhost] => (item=[u’usr/local/bin/satnogs-setup’, u’/usr/local/bin/satnogs-setup’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/bootstrap.sh’, u’/usr/local/share/satnogs-setup/bootstrap.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/setup.sh’, u’/usr/local/share/satnogs-setup/setup.sh’])
ok: [localhost] => (item=[u’usr/local/share/satnogs-setup/config.sh’, u’/usr/local/share/satnogs-setup/config.sh’])

PLAY [satnogs-clients] *******************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-client : Add satnogs-client service user] **********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-client : Install dependencies] *********************************************************************************************************************************************************
ok: [localhost] => (item=virtualenv)
ok: [localhost] => (item=python-dev)
ok: [localhost] => (item=redis-server)
ok: [localhost] => (item=libffi-dev)
ok: [localhost] => (item=libssl-dev)
ok: [localhost] => (item=git)
ok: [localhost] => (item=python-apscheduler)
ok: [localhost] => (item=python-sqlalchemy)
ok: [localhost] => (item=python-requests)
ok: [localhost] => (item=python-dateutil)
ok: [localhost] => (item=python-ephem)
ok: [localhost] => (item=python-tz)
ok: [localhost] => (item=python-matplotlib)
ok: [localhost] => (item=python-numpy)

TASK [satnogs-client : Check for virtualenv with no access to global site-packages] ******************************************************************************************************************
ok: [localhost]

TASK [satnogs-client : Remove virtualenv] ************************************************************************************************************************************************************
skipping: [localhost] => (item=bin)
skipping: [localhost] => (item=include)
skipping: [localhost] => (item=lib)
skipping: [localhost] => (item=local)
skipping: [localhost] => (item=share)

TASK [satnogs-client : Uninstall satnogs-client] *****************************************************************************************************************************************************
[WARNING]: Module remote_tmp /var/lib/satnogs/.ansible/tmp did not exist and was created with a mode of 0700, this may cause issues when running as another user. To avoid this, create the
remote_tmp dir with the correct permissions manually

changed: [localhost]

TASK [satnogs-client : Install satnogs-client] *******************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-client : Install satnogs-client configuration] *****************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-client : Add satnogs-client systemd service] *******************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-client : Use tmpfs for state directory] ************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-client : Start satnogs-client service] *************************************************************************************************************************************************
ok: [localhost]

RUNNING HANDLER [satnogs-client : Restart satnogs-client service] ************************************************************************************************************************************
changed: [localhost]

PLAY [satnogs-radios] ********************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-radio : Add archive repositories keys] *************************************************************************************************************************************************
ok: [localhost] => (item=8B48AD6246925553)
ok: [localhost] => (item=7638D0442B90D010)

TASK [satnogs-radio : Remove jessie backports repository] ********************************************************************************************************************************************
ok: [localhost]

TASK [satnogs-radio : Install dependencies] **********************************************************************************************************************************************************
ok: [localhost] => (item=[u’gnuradio’, u’gr-osmosdr’, u’gr-fcdproplus’])

TASK [satnogs-radio : Uninstall gr-satnogs] **********************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-radio : Install gr-satnogs] ************************************************************************************************************************************************************
changed: [localhost]

TASK [satnogs-radio : Blacklist SDR modules] *********************************************************************************************************************************************************
ok: [localhost] => (item=dvb_usb_rtl28xxu)

TASK [satnogs-radio : Unload SDR modules] ************************************************************************************************************************************************************
ok: [localhost] => (item=dvb_usb_rtl28xxu)

TASK [satnogs-radio : Download UHD images] ***********************************************************************************************************************************************************
ok: [localhost]

PLAY [hamlib-utils] **********************************************************************************************************************************************************************************

TASK [Gathering Facts] *******************************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Check Ansible version] ****************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Check distribution] *******************************************************************************************************************************************************************
ok: [localhost] => {
“changed”: false,
“msg”: “All assertions passed”
}

TASK [common : Update APT cache] *********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Install packages] *********************************************************************************************************************************************************************
ok: [localhost] => (item=acl)
ok: [localhost] => (item=build-essential)
ok: [localhost] => (item=rng-tools)
ok: [localhost] => (item=sudo)

TASK [common : Check if dphys-swapfile package is installed] *****************************************************************************************************************************************
ok: [localhost]

TASK [common : Disable swap file] ********************************************************************************************************************************************************************
ok: [localhost]

TASK [common : Add ZRAM init script] *****************************************************************************************************************************************************************
ok: [localhost]

TASK [hamlib-utils : Add hamlib utilities service user] **********************************************************************************************************************************************
ok: [localhost]

TASK [hamlib-utils : Install hamlib utilities] *******************************************************************************************************************************************************
ok: [localhost]

TASK [hamlib-utils : Install hamlib utilities configuration] *****************************************************************************************************************************************
changed: [localhost]

TASK [hamlib-utils : Add rigctld systemd service] ****************************************************************************************************************************************************
ok: [localhost]

TASK [hamlib-utils : Add rotctld systemd service] ****************************************************************************************************************************************************
ok: [localhost]

TASK [hamlib-utils : Start/stop rigctld service] *****************************************************************************************************************************************************
changed: [localhost]

TASK [hamlib-utils : Start/stop rotctld service] *****************************************************************************************************************************************************
changed: [localhost]

RUNNING HANDLER [hamlib-utils : Restart rigctld service] *********************************************************************************************************************************************
changed: [localhost]

RUNNING HANDLER [hamlib-utils : Restart rotctld service] *********************************************************************************************************************************************
changed: [localhost]

PLAY RECAP *******************************************************************************************************************************************************************************************
localhost : ok=68 changed=12 unreachable=0 failed=0

pi@raspberrypi:~ $