diff --git a/.gitignore b/.gitignore index ff461dc..9ed709c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -/*.retry -/keys/* -!/keys/.keep - -__pycache__/ +/playbooks/*.retry diff --git a/LICENSE b/LICENSE index 31a89d7..b2c01a5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Alex Kotov +Copyright (c) 2019-2020 Alex Kotov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/inventories/production/group_vars/all.yml b/inventories/production/group_vars/all.yml deleted file mode 100644 index 8c23c13..0000000 --- a/inventories/production/group_vars/all.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -litecoin__txindex: true -litecoin__server: true -litecoin__rpcserialversion: 1 - -litecoin__externalip: - - '165.227.52.149' - - '2604:A880:0002:00D0:0000:0000:2379:9001' - -litecoin__rpcauth: - - 'lnd:d9ff98d96268fb714417e696f95a061$b70f35d76988632783001b4aa4908e567a8a2d3ac7b30cb781d21935d9a4a7e0' - - 'kotovalexarian:c2fe85ea2a33b18d277bc04f79228985$b342c1e177c209573082059bbee50821926540c17e7de1396a08d04122148209' - -litecoin__zmqpubrawblock: - - 'tcp://127.0.0.1:28332' - -litecoin__zmqpubrawtx: - - 'tcp://127.0.0.1:28333' diff --git a/inventories/production/host_vars/lnd.crypto-libertarian.com.yml b/inventories/production/host_vars/lnd.crypto-libertarian.com.yml deleted file mode 100644 index 5d9d56c..0000000 --- a/inventories/production/host_vars/lnd.crypto-libertarian.com.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -public_iface: eth0 -private_iface: eth1 - -public_ipv4_address: 165.227.52.149 -public_ipv4_gateway: 165.227.48.1 -public_ipv4_prefixlen: 20 -public_ipv4_netmask: 255.255.240.0 - -public_ipv6_address: 2604:A880:0002:00D0:0000:0000:2379:9001 -public_ipv6_gateway: 2604:a880:2:d0::1 -public_ipv6_prefixlen: 124 -public_ipv6_from: 2604:a880:2:d0::2379:9000 -public_ipv6_to: 2604:a880:2:d0::2379:900f - -private_ipv4_address: 10.138.124.98 -private_ipv4_prefixlen: 16 -private_ipv4_netmask: 255.255.0.0 diff --git a/inventories/production/hosts b/inventories/production/hosts index 70ce2ab..e69de29 100644 --- a/inventories/production/hosts +++ b/inventories/production/hosts @@ -1 +0,0 @@ -lnd.crypto-libertarian.com diff --git a/keys/.keep b/keys/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/playbooks/initial.yml b/playbooks/initial.yml deleted file mode 100644 index 889b6e5..0000000 --- a/playbooks/initial.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -- hosts: all - tasks: - - name: APT update & upgrade - become: true - apt: - update_cache: true - upgrade: safe - - name: Install useful packages - become: true - apt: - state: present - name: ['bash-completion', 'colordiff', 'curl', 'less', 'vim'] - - name: Harden SSH daemon - become: true - lineinfile: - state: present - path: /etc/ssh/sshd_config - regexp: '{{ item.regexp }}' - line: '{{ item.line }}' - with_items: - - regexp: '^#?PermitRootLogin ' - line: 'PermitRootLogin no' - - regexp: '^#?MaxAuthTries ' - line: 'MaxAuthTries 2' - - regexp: '^#?MaxSessions ' - line: 'MaxSessions 5' - - regexp: '^#?PasswordAuthentication ' - line: 'PasswordAuthentication no' - - regexp: '^#?ChallengeResponseAuthentication ' - line: 'ChallengeResponseAuthentication no' - - regexp: '^#?AllowAgentForwarding ' - line: 'AllowAgentForwarding no' - - regexp: '^#?AllowTcpForwarding ' - line: 'AllowTcpForwarding no' - - regexp: '^#?X11Forwarding ' - line: 'X11Forwarding no' - - regexp: '^#?TCPKeepAlive ' - line: 'TCPKeepAlive no' - - regexp: '^#?UseDNS ' - line: 'UseDNS no' - - name: Restart SSH daemon - become: true - systemd: - daemon_reload: true - name: sshd - state: restarted diff --git a/playbooks/lightning.yml b/playbooks/lightning.yml deleted file mode 100644 index b511aff..0000000 --- a/playbooks/lightning.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- hosts: all - roles: - - kotovalexarian.litecoin - - kotovalexarian.lnd diff --git a/playbooks/site.yml b/playbooks/site.yml new file mode 100644 index 0000000..a17b129 --- /dev/null +++ b/playbooks/site.yml @@ -0,0 +1,5 @@ +--- +- hosts: all + module_defaults: + apt: + force_apt_get: true diff --git a/requirements.yml b/requirements.yml index c2434b2..ed97d53 100644 --- a/requirements.yml +++ b/requirements.yml @@ -1,4 +1 @@ --- -- src: kotovalexarian.litecoin - version: v0.0.7 -- src: kotovalexarian.lnd