shell - Can not change gnome-terminal to solarized by running script with ansible playbook -


i'm writing roles setting virtual machine using ansible.

i'm trying set gnome-terminal color theme solarized https://github.com/anthony25/gnome-terminal-colors-solarized

i can run script terminal , color changes immediately

$ ~/solarized/gnome-terminal-colors-solarized/install.sh -s dark -p default 

but when run ansible:

  - name: set solarized color default profile     script: /home/someuser/solarized/gnome-terminal-colors-solarized/install.sh -s dark -p default 

the result ok

task: [solarized | set solarized color default profile] ***********************  changed: [localhost] 

but nothing changed! check config file @ ~/.gconf/apps/gnome-terminal/profiles/default/ , did not change well

i tried shell, command still same result.

i tried run

install.sh -s lkefjefj -p lefjelkfj  

and throws errors, reads arguments

the script run sudo option.

so not understand why not working?

i found problem. script run in ansible root user when declare "sudo: yes" in main playbook. when supplied "sudo_user: my_user" run correctly


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -