This repository was archived by the owner on Oct 8, 2019. It is now read-only.
File tree 3 files changed +23
-13
lines changed
3 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ Vagrant.configure("2") do |config|
20
20
vb . cpus = 2
21
21
end
22
22
23
- # config.vm.provision "ansible" do |ansible|
24
- # ansible.playbook = "playbook.yml"
25
- # end
23
+ config . vm . provision "ansible" do |ansible |
24
+ ansible . playbook = "playbook.yml"
25
+ end
26
26
27
27
config . vm . provision :shell , :inline => "sudo /vagrant/cleanup.sh"
28
28
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =virtual frame buffer X server
3
+ After =network.target
4
+
5
+ [Service]
6
+ ExecStart =/usr/bin/Xvfb -ac :99
7
+
8
+ [Install]
9
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 2
2
become : yes
3
3
apt : pkg=xvfb
4
4
5
+ - name : Install Xvfb systemd script
6
+ become : yes
7
+ copy : src=xvfb.service
8
+ dest=/etc/systemd/system/xvfb.service
9
+
10
+ - name : Enable xvfb.service
11
+ become : yes
12
+ service : name=xvfb enabled=yes state=started
13
+
5
14
- name : add Google Linux repo signing key
6
15
become : yes
7
16
apt_key : id=7FAC5991
28
37
become : yes
29
38
copy : src=/tmp/chromedriver dest=/usr/local/bin/chromedriver mode=0755 remote_src=yes
30
39
31
- - name : expore display to allow selenium to work
40
+ - name : export display to allow selenium to work
32
41
lineinfile :
33
- dest : " {{ user_home}}.profile"
42
+ dest : " {{ user_home }}.profile"
34
43
line : " export DISPLAY=:99"
35
-
36
- # This is probably the wrong place for this,
37
- # it should be tied to systemd startup rather
38
- # than a profile thing *I think*.
39
- - name : start Xvfb on login
40
- lineinfile :
41
- dest : " {{ user_home}}.profile"
42
- line : " Xvfb -ac :99 2>/dev/null &"
You can’t perform that action at this time.
0 commit comments