Skip to content

Commit

Permalink
prevent gettys from spinning when using this on docker, during a mole… (
Browse files Browse the repository at this point in the history
#5)

* prevent gettys from spinning when using this on docker, during a molecule invocation

* make travis stop yelling at me.
  • Loading branch information
julialongtin authored Apr 23, 2019
1 parent 605b65f commit 0fe61f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions molecule/default/disable_getty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: disable spawning of unneeded gettys
systemd:
name: "getty@{{ item }}.service"
enabled: false
masked: true
state: stopped
with_items: [ tty1, tty2, tty3, tty4, tty5, tty6 ]
2 changes: 2 additions & 0 deletions molecule/default/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
update_cache: true
changed_when: false
when: ansible_os_family == 'Debian'
- name: import yaml to disable gettys.
import_tasks: disable_getty.yml
vars:
# cassandra 3.11 doesn't support java 9 yet, use openjdk-8.
java_packages:
Expand Down

0 comments on commit 0fe61f9

Please sign in to comment.