# pressed late\_command ansibe-pull

**URL:** <https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [December 3, 2015, 8:35am UTC](https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926 "2015-12-03T08:35:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Keller](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@Eric\_Keller](https://forum.ansible.com/u/Eric_Keller)\
**Post date:** [December 3, 2015, 8:35am UTC](https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926/1 "2015-12-03T08:35:18Z")

</div>

Hi there,

I am using foreman for setting up some Ubuntu clients, using ansible as configuration management. I was struggeling with preseed late\_command and ansible-pull, that’s why I would like to post about a working solution:

```auto

d-i preseed/late_command string \
echo 'GIT_SSL_NO_VERIFY=true /usr/bin/ansible-pull -C gitworkshop -U https://github.com/mylogin/ansibles.git -d /tmp/ansibles -i ./localhost ansible/workshop.yml' > /target/tmp/pull.sh; \
chmod +x /target/tmp/pull.sh; \
chroot /target /bin/sh /tmp/pull.sh

```

Note: GIT\_SSL\_NO\_VERIFY can be omited in case you have all ca-certificates properly configured.  
the localhost file contains the localhost word.

Note: this did not work with the in-target preseed keyword.

Best Regards

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 3, 2015, 5:10pm UTC](https://forum.ansible.com/t/pressed-late-command-ansibe-pull/19926/2 "2015-12-03T17:10:07Z")

</div>

You could also use debconf module to deal with preseeding.
