Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
- removes unneeded links
- fixed spelling errors
- remvoed mcrypt
  • Loading branch information
michaelpporter committed Oct 21, 2018
1 parent 75e8df8 commit 7facc98
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Settings for the sudo user.

Settings for [geerlingguy.certbot](https://github.com/geerlingguy/ansible-role-certbot)

# For live certs swithch this value
# For live certs switch this value
# certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_live }}"
certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_test }}"
# Email address for Cloudflare Global API Key
Expand Down
4 changes: 2 additions & 2 deletions roles/logwatch/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# Logwatch
logwatch_send_to: "[email protected]"
logwatch_send_from: "[email protected]"
logwatch_send_to: ""
logwatch_send_from: ""
1 change: 0 additions & 1 deletion roles/setup/files/usage.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
echo -e "## {{ansible_nodename}} Folders\n" > /var/www/sites/web/usage.txt
du -hd1 /var/www/ | sort -h -r | while read space user ; do echo -e " * $space $user\n"; done >> /var/www/sites/web/usage.txt
du -hd1 /var/build/ | sort -h -r | while read space user ; do echo -e " * $space $user\n"; done >> /var/www/sites/web/usage.txt
echo -e "## {{ansible_nodename}} Space\n" >> /var/www/sites/web/usage.txt
df -Ph / | column -t >> /var/www/sites/web/usage.txt
echo -e "\n" >> /var/www/sites/web/usage.txt
Expand Down
3 changes: 0 additions & 3 deletions roles/setup/files/web/dad.php.j2

This file was deleted.

1 change: 0 additions & 1 deletion roles/setup/files/web/index.php.j2
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@
<li><a href="usage.txt">usage.txt</a></li>
<li><a href="phpinfo.php">phpinfo.php</a></li>
<li><a href="slack.php">Slack Users</a></li>
<li><a href="dad.php">icanhazdadjoke.com</a></li>
</ul>
<!-- Column four end -->
</div>
Expand Down
5 changes: 2 additions & 3 deletions roles/setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,18 @@
state: directory
mode: 0775

- name: Web Server Templates
- name: Web Server Templates
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{user_sudouser_username}}"
group: www-data
mode: 0755
with_items:
- { src: 'files/web/dad.php.j2', dest: '/var/www/sites/web/dad.php' }
- { src: 'files/web/index.php.j2', dest: '/var/www/sites/web/index.php' }
- { src: 'files/web/phpinfo.php.j2', dest: '/var/www/sites/web/phpinfo.php' }

- name: web File Templates
- name: web File Templates
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
Expand Down
8 changes: 2 additions & 6 deletions vars/main-vars.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ certbot_email: "[email protected]"
certbot_create_if_missing: yes
# Install from source to get dns plugin folders
certbot_install_from_source: yes
# For live certs, uncoment
# By Default certbot will use the testing server. For live certs, switch the comments
# certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_live }}"
certbot_cloudflare_acme_server: "{{ certbot_cloudflare_acme_test }}"
# Email address for Cloudflare Global API Key
certbot_cloudflare_email: "[email protected]"
# ansible-vault encrypt_string 'cloudflareAPIKey' --name 'certbot_cloudflare_api_key'
Expand Down Expand Up @@ -67,16 +68,13 @@ setup_servers: "{{ groups['webgroup'] }}"
## ansible-vault encrypt_string 'slackAPIKey' --name 'setup_slack_api'
setup_slack_api: ''



# Jenkins Playbook
jenkins_vhost: "demojenkins.example.com"
jenkins_email: "[email protected]"
jenkins_admin_username: admin
# ansible-vault encrypt_string 'demo' --name 'jenkins_admin_password'
jenkins_admin_password: 'demo'


# Logwatch Playbook
logwatch_send_to: "[email protected]"
logwatch_send_from: "[email protected]"
Expand Down Expand Up @@ -134,7 +132,5 @@ setup_apt_install:
- sshpass
- unzip



## Pantheon CI https://pantheon.io/docs/guides/jenkins/
config_terminus_ci: false
1 change: 0 additions & 1 deletion vars/ubuntu-7.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ apache_mods_disabled:

php_packages_extra:
- libapache2-mod-php7.1
- php7.1-mcrypt
- php7.1-intl
- php7.1-xsl
- php7.1-zip
Expand Down
1 change: 0 additions & 1 deletion vars/ubuntu-7.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ apache_mods_disabled:

php_packages_extra:
- libapache2-mod-php7.2
- php7.2-mcrypt
- php7.2-intl
- php7.2-xsl
- php7.2-zip
Expand Down
20 changes: 10 additions & 10 deletions web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
gather_facts: false
pre_tasks:
- setup: # aka gather_facts
# - name: Add domain to CloudFalre
# cloudflare_dns:
# zone: "{{base_web_domain}}"
# record: "*.{{ansible_nodename}}"
# type: A
# value: "{{ ansible_default_ipv4.address }}"
# account_email: "{{ certbot_cloudflare_email }}"
# account_api_token: "{{ certbot_cloudflare_api_key }}"
# register: record
# - debug: var=record
- name: Add domain to CloudFalre
cloudflare_dns:
zone: "{{base_web_domain}}"
record: "*.{{ansible_nodename}}"
type: A
value: "{{ ansible_default_ipv4.address }}"
account_email: "{{ certbot_cloudflare_email }}"
account_api_token: "{{ certbot_cloudflare_api_key }}"
register: record
- debug: var=record
- name: set timezone to America/Chicago
timezone:
name: America/Chicago
Expand Down

0 comments on commit 7facc98

Please sign in to comment.