Set up failing on TASK [vpn : Enforcing ipsec with apparmor]
Here's the relevant part of the output. Cloud provider is DigitalOcean.
TASK [vpn : Enforcing ipsec with apparmor] *************************************
failed: [<ip-addr>] (item=/usr/lib/ipsec/charon) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/charon\"", "delta": "0:00:00.003515", "end": "2016-11-23 09:50:36.901757", "failed": true, "item": "/usr/lib/ipsec/charon", "rc": 127, "start": "2016-11-23 09:50:36.898242", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [<ip-addr>] (item=/usr/lib/ipsec/lookip) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/lookip\"", "delta": "0:00:00.005576", "end": "2016-11-23 09:50:38.888941", "failed": true, "item": "/usr/lib/ipsec/lookip", "rc": 127, "start": "2016-11-23 09:50:38.883365", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [<ip-addr>] (item=/usr/lib/ipsec/stroke) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/stroke\"", "delta": "0:00:00.004261", "end": "2016-11-23 09:50:40.989958", "failed": true, "item": "/usr/lib/ipsec/stroke", "rc": 127, "start": "2016-11-23 09:50:40.985697", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
PLAY RECAP *********************************************************************
<ip-addr> : ok=11 changed=7 unreachable=0 failed=1
localhost : ok=6 changed=2 unreachable=0 failed=0
The package apparmor-utils includes aa-enforce and it's installed in the common role. Did you skip the common role?
What system? How do you run the algo deployer?
I'm on macOS 10.12.1 and followed the instructions as per https://github.com/trailofbits/algo#deploy-the-algo-server. As far as I can tell I didn't skip anything
EDIT: In case this helps
$ python --version
Python 2.7.12
$ ansible --version
ansible 2.2.0.0
config file = /Users/chrifpa/Documents/algo/ansible.cfg
configured module search path = Default w/o overrides
Then, please, show the full log of installation
Do you use cloud deployment or non-cloud on your existing server?
I'm using cloud deployment to DigitalOcean.
$ ./algo
What provider would you like to use?
1. DigitalOcean
2. Amazon EC2
3. Google Compute Engine
4. Install to existing Ubuntu server
Enter the number of your desired provider
:
Enter your API token (https://cloud.digitalocean.com/settings/api/tokens):
:
Enter an existing SSH key name (https://cloud.digitalocean.com/settings/security):
:
Name the vpn server:
[algo.local]:
What region should the server be located in?
1. Amsterdam (Datacenter 2)
2. Amsterdam (Datacenter 3)
3. Frankfurt
4. London
5. New York (Datacenter 1)
6. New York (Datacenter 2)
7. New York (Datacenter 3)
8. San Francisco (Datacenter 1)
9. San Francisco (Datacenter 2)
10. Singapore
11. Toronto
12. Bangalore
Enter the number of your desired region:
[7]:
Do you want to apply security enhancements?
[y/N]:
Do you want to install an HTTP proxy to block ads and decrease traffic usage while surfing?
[y/N]:
Do you want to install a local DNS resolver to block ads while surfing?
[y/N]:
Do you want to use auditd for security monitoring (see config.cfg)?
[y/N]:
Do you want each user to have their own account for SSH tunneling?
[y/N]:
PLAY [Configure the server and install required software] **********************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [cloud-digitalocean : Set the DigitalOcean Access Token fact] *************
ok: [localhost]
TASK [cloud-digitalocean : Getting your SSH key ID on Digital Ocean...] ********
ok: [localhost]
TASK [cloud-digitalocean : Creating a droplet...] ******************************
changed: [localhost]
TASK [cloud-digitalocean : Add the droplet to an inventory group] **************
changed: [localhost]
TASK [cloud-digitalocean : Wait for SSH to become available] *******************
ok: [localhost -> localhost]
PLAY [Post-provisioning tasks] *************************************************
TASK [Install prerequisites] ***************************************************
changed: [37.139.25.184]
TASK [Configure defaults] ******************************************************
changed: [37.139.25.184]
TASK [Enable IPv6 on the droplet] **********************************************
ok: [37.139.25.184]
TASK [Get Droplet networks] ****************************************************
ok: [37.139.25.184]
TASK [IPv6 configured] *********************************************************
changed: [37.139.25.184] => (item={u'type': u'public', u'netmask': 64, u'ip_address': u'2A03:B0C0:0000:1010:0000:0000:0725:9001', u'gateway': u'2A03:B0C0:0000:1010:0000:0000:0000:0001'})
TASK [IPv6 included into the network config] ***********************************
changed: [37.139.25.184]
RUNNING HANDLER [reload eth0] **************************************************
changed: [37.139.25.184]
TASK [Wait for SSH to become available] ****************************************
ok: [37.139.25.184 -> localhost]
TASK [common : Check if reboot is required] ************************************
changed: [37.139.25.184]
TASK [common : Reboot] *********************************************************
skipping: [37.139.25.184]
TASK [common : Wait for shutdown] **********************************************
skipping: [37.139.25.184]
TASK [common : Wait until SSH becomes ready...] ********************************
skipping: [37.139.25.184]
TASK [vpn : Gather Facts] ******************************************************
ok: [37.139.25.184]
TASK [vpn : Install StrongSwan] ************************************************
changed: [37.139.25.184]
TASK [vpn : Enforcing ipsec with apparmor] *************************************
failed: [37.139.25.184] (item=/usr/lib/ipsec/charon) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/charon\"", "delta": "0:00:00.002550", "end": "2016-11-25 12:10:37.022226", "failed": true, "item": "/usr/lib/ipsec/charon", "rc": 127, "start": "2016-11-25 12:10:37.019676", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [37.139.25.184] (item=/usr/lib/ipsec/lookip) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/lookip\"", "delta": "0:00:00.004741", "end": "2016-11-25 12:10:37.833338", "failed": true, "item": "/usr/lib/ipsec/lookip", "rc": 127, "start": "2016-11-25 12:10:37.828597", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
failed: [37.139.25.184] (item=/usr/lib/ipsec/stroke) => {"changed": true, "cmd": "aa-enforce \"/usr/lib/ipsec/stroke\"", "delta": "0:00:00.002416", "end": "2016-11-25 12:10:38.601716", "failed": true, "item": "/usr/lib/ipsec/stroke", "rc": 127, "start": "2016-11-25 12:10:38.599300", "stderr": "/bin/sh: 1: aa-enforce: not found", "stdout": "", "stdout_lines": [], "warnings": []}
PLAY RECAP *********************************************************************
37.139.25.184 : ok=11 changed=7 unreachable=0 failed=1
localhost : ok=6 changed=2 unreachable=0 failed=0